PHP Static analysis for Symfony

Label Recipes Issues Files Severity Frequence
Avoid Optional Properties All, Analyze 1 1 Major 83 %
Const Visibility Usage All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 2 1 Minor 16 %
Class Could Be Final All, Analyze, ClassReview 13 13 Minor 95 %
Method Could Be Static All, Analyze, ClassReview 11 6 Minor 95 %
Hidden Nullable All, Analyze, ClassReview 1 1 Minor 0 %
Non Nullable Getters All, Analyze, ClassReview 2 2 Minor 0 %
Property Could Be Local All, Analyze, ClassReview 9 7 Minor 71 %
Should Use Local Class Analyze, ClearPHP, All, Simple 15 8 Minor 94 %
Too Many Dereferencing All, Analyze 1 1 Minor 0 %
Too Many Injections All, Analyze, Dismell 1 1 Minor 0 %
Undefined Classes Analyze, All 147 15 Major 91 %
Undefined Class Constants Analyze, All, CI-checks 26 6 Major 53 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks 3 1 Major 58 %
Undefined ::class All, Analyze, CI-checks 17 1 Major 34 %
Unresolved Classes Analyze, All 14 6 Major 86 %
Unresolved Instanceof Analyze, Dead code, ClearPHP, All, Simple, Top10 1 1 Major 48 %
Unused Classes Dead code, All, Simple, Analyze 1 1 Major 72 %
Unused Methods Dead code, All, Simple 71 14 Minor 95 %
Unused Protected Methods Dead code, All 1 1 Major 72 %
Used Once Property All, Analyze 2 2 Minor 72 %
Uncaught Exceptions Analyze, All 5 3 Minor 81 %
Missing Include All, Analyze 2 2 Critical 61 %
Empty Function Analyze, All, Simple 2 1 Minor 71 %
Mismatched Default Arguments All, Analyze, Typechecks 1 1 Minor 33 %
Mismatched Typehint All, Analyze, Typechecks 1 1 Major 5 %
Must Return Methods Analyze, All, Simple, Level 2, LintButWontExec, CI-checks 1 1 Major 22 %
Never Used Parameter All, Analyze, Suggestions 1 1 Minor 47 %
No Return Used All, Analyze, Suggestions, Level 4 6 2 Minor 41 %
Relay Function Analyze, All 2 2 Major 83 %
Too Many Local Variables All, Analyze 1 1 Minor 65 %
Typehint Must Be Returned All, Analyze, LintButWontExec, CI-checks 1 1 Major 10 %
Undefined Functions Analyze, All, CI-checks 2 2 Major 71 %
Unused Arguments Analyze, All, Simple 6 3 Major 89 %
Uses Default Values Analyze, All, Simple, CI-checks 12 5 Minor 97 %
Methods Without Return All, Analyze 6 5 Minor 0 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks 1 1 Major 38 %
Wrong Returned Type All, Analyze, ClassReview, CI-checks 3 3 Minor 0 %
Undefined Interfaces Analyze, All, CI-checks 51 13 Major 67 %
Unresolved Use Analyze, ClearPHP, All, Simple 70 14 Major 65 %
Unused Use Dead code, ClearPHP, All, Simple 25 8 Major 54 %
Assumptions All, Analyze 1 1 Minor 0 %
Wrong Parameter Type Analyze, OneFile, All, Simple, CI-checks 1 1 Major 45 %
PHP 7.0 Scalar Typehints All, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 33 8 Critical 31 %
PHP 7.1 Scalar Typehints All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 3 3 Critical 0 %
Php7 Relaxed Keyword CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All, Appinfo 22 3 Major 25 %
PHP Keywords As Names Analyze, All, Simple 25 3 Major 89 %
Scalar Are Not Arrays All, Analyze, CompatibilityPHP74, CI-checks 6 1 Minor 0 %
Use Nullable Type All, Appinfo, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 22 4 Major 21 %
Wrong Type For Native PHP Function All, Analyze, CI-checks 1 1 Minor 0 %
Constant Comparison All, Analyze 1 1 Minor 0 %
Buried Assignation Analyze, All 2 1 Minor 82 %
If With Same Conditions Analyze, All, Simple, CI-checks 1 1 Major 44 %
Iffectations Analyze, All 3 2 Minor 80 %
Inconsistent Elseif All, Analyze 2 1 Major 73 %
Long Arguments All, Analyze 5 1 Minor 67 %
Variable Is Not A Condition All, Analyze 3 3 Minor 57 %
Preprocessable Analyze, All, Rector 1 1 Minor 86 %
Missing Returntype In Method All, Typehints, Analyze, CI-checks 2 2 Minor 0 %
Undefined Variable All, Analyze, CI-checks 3 1 Minor 77 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4 7 3 Minor 95 %