krixon/rules

View on GitHub
src/Operator.php

Summary

Maintainability
A
2 hrs
Test Coverage

Operator has 21 functions (exceeds 20 allowed). Consider refactoring.
Wontfix

final class Operator
{
    private const EQUALS         = 'EQUALS';
    private const LESS           = 'LESS';
    private const LESS_EQUALS    = 'LESS_EQUALS';
Severity: Minor
Found in src/Operator.php - About 2 hrs to fix

    Avoid too many return statements within this method.
    Wontfix

                case self::GREATER_EQUALS: return '>=';
    Severity: Major
    Found in src/Operator.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Wontfix

                  case self::CONTAINS_ANY:   return 'contains any';
      Severity: Major
      Found in src/Operator.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    case self::CONTAINS_ALL:   return 'contains all';
        Severity: Major
        Found in src/Operator.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      case self::MATCHES:        return 'matches';
          Severity: Major
          Found in src/Operator.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                    return 'UNKNOWN';
            Severity: Major
            Found in src/Operator.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                          case self::IN:             return 'in';
              Severity: Major
              Found in src/Operator.php - About 30 mins to fix

                There are no issues that match your filters.

                Category
                Status