fireguard/form

View on GitHub
src/Form/Elements/ButtonElement.php

Summary

Maintainability
A
2 hrs
Test Coverage

Avoid too many return statements within this method.
Open

            case 'link': return 'btn-link';
Severity: Major
Found in src/Form/Elements/ButtonElement.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                case 'info': return 'btn-info';
    Severity: Major
    Found in src/Form/Elements/ButtonElement.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  default: return 'btn-default';
      Severity: Major
      Found in src/Form/Elements/ButtonElement.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    case 'warning': return 'btn-warning';
        Severity: Major
        Found in src/Form/Elements/ButtonElement.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      case 'success': return 'btn-success';
          Severity: Major
          Found in src/Form/Elements/ButtonElement.php - About 30 mins to fix

            There are no issues that match your filters.

            Category
            Status