Add qodana CI checks #4
Annotations
2 warnings and 27 notices
Undefined method:
src/SieveServiceProvider.php#L15
Method 'getModel' is undefined
|
qodana
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Duplicated code fragment:
src/Filters/NumericFilter.php#L12
Duplicated code
|
PHP Mess Detector validation:
src/Sieve.php#L76
phpmd: The method applyRequestSorts() has an NPath complexity of 289. The configured NPath complexity threshold is 200.
|
PHP Mess Detector validation:
src/Filters/DateFilter.php#L14
phpmd: The method modifyQuery uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
|
PHP Mess Detector validation:
src/Filters/DateFilter.php#L21
phpmd: The method modifyQuery uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
|
PHP Mess Detector validation:
src/Sieve.php#L76
phpmd: The method applyRequestSorts() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10.
|
Missing property's type declaration:
src/Sieve.php#L11
Missing property's type declaration
|
Missing property's type declaration:
src/Sieve.php#L9
Missing property's type declaration
|
Missing parameter's type declaration:
src/SearchTerm.php#L13
Missing parameter's type declaration
|
Missing parameter's type declaration:
src/ModifiesQueries.php#L17
Missing parameter's type declaration
|
Missing parameter's type declaration:
src/SearchTerm.php#L13
Missing parameter's type declaration
|
Missing parameter's type declaration:
src/SearchTerm.php#L13
Missing parameter's type declaration
|
Missing parameter's type declaration:
src/SearchTerm.php#L13
Missing parameter's type declaration
|
Missing return type declaration:
src/SearchTerm.php#L28
Missing function's return type declaration
|
Missing return type declaration:
src/ModifiesQueries.php#L17
Missing function's return type declaration
|
Missing return type declaration:
src/ModifiesQueries.php#L23
Missing function's return type declaration
|
Missing return type declaration:
src/MapFilter.php#L57
Missing function's return type declaration
|
Missing return type declaration:
src/SearchTerm.php#L44
Missing function's return type declaration
|
Missing return type declaration:
src/SearchTerm.php#L20
Missing function's return type declaration
|
Missing return type declaration:
src/SearchTerm.php#L36
Missing function's return type declaration
|
Missing return type declaration:
src/Searchable.php#L13
Missing function's return type declaration
|
Unhandled exception:
rector.php#L16
Unhandled exceptions
|
Unnecessary fully qualified name:
src/MapFilter.php#L62
Qualifier is unnecessary and can be removed
|
Unnecessary fully qualified name:
src/FilterBuilder.php#L54
Qualifier is unnecessary and can be removed
|
Unnecessary fully qualified name:
src/FilterBuilder.php#L71
Qualifier is unnecessary and can be removed
|
Unnecessary fully qualified name:
src/Sieve.php#L13
Qualifier is unnecessary and can be removed
|
Unused import:
src/Sieve.php#L5
Import 'Illuminate\\Http\\Request' is never used
|
Type tag without variable name:
src/Sieve.php#L37
Doc tag without variable name doesn't provide type information for any expression
|