src/Http/Traits/Filterable.php

Summary

Maintainability
A
1 hr
Test Coverage

Method addFilter has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    protected function addFilter(Builder $query, string $field, string $operator, $value, ?string $join = 'and')
Severity: Minor
Found in src/Http/Traits/Filterable.php - About 35 mins to fix

    Avoid too many return statements within this method.
    Open

                case 'le': return '<=';
    Severity: Major
    Found in src/Http/Traits/Filterable.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  default: return '=';
      Severity: Major
      Found in src/Http/Traits/Filterable.php - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status