PHP Static analysis for php-cs-fixer-custom-fixers

Label Recipes Issues Files Severity Frequence
Randomly Sorted Arrays All, Analyze, Level 4, Suggestions 3 3 Minor 41 %
String Initialization All, CompatibilityPHP71 2 1 Minor 33 %
Avoid Optional Properties All, Analyze 2 1 Major 83 %
Const Visibility Usage All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 5 4 Minor 16 %
Method Could Be Static All, Analyze, ClassReview 128 44 Minor 95 %
Property Could Be Local All, Analyze, ClassReview 8 3 Minor 71 %
Should Use Local Class Analyze, ClearPHP, All, Simple 204 46 Minor 94 %
Undefined Classes Analyze, All 490 49 Major 91 %
Undefined Class Constants Analyze, All, CI-checks 38 19 Major 53 %
Unresolved Classes Analyze, All 167 41 Major 86 %
Unresolved Instanceof Analyze, Dead code, ClearPHP, All, Simple, Top10 3 1 Major 48 %
Unused Classes Dead code, All, Simple, Analyze 9 9 Major 72 %
Unused Methods Dead code, All, Simple 215 42 Minor 95 %
Unused Protected Methods Dead code, All 1 1 Major 72 %
Undefined Caught Exceptions Dead code, All 1 1 None 50 %
Uncaught Exceptions Analyze, All 4 3 Minor 81 %
Useless Catch All, Analyze, CI-checks 1 1 Minor 47 %
Use Named Boolean In Argument Definition All, Analyze 1 1 Minor 84 %
Mismatched Typehint All, Analyze, Typechecks 2 1 Major 5 %
Must Return Methods Analyze, All, Simple, Level 2, LintButWontExec, CI-checks 3 3 Major 22 %
Never Used Parameter All, Analyze, Suggestions 2 2 Minor 47 %
No Boolean As Default All, Analyze 1 1 Minor 84 %
Relay Function Analyze, All 14 4 Major 83 %
Too Many Local Variables All, Analyze 1 1 Minor 65 %
Typehint Must Be Returned All, Analyze, LintButWontExec, CI-checks 3 3 Major 10 %
Undefined Functions Analyze, All, CI-checks 8 6 Major 71 %
Unused Arguments Analyze, All, Simple 37 36 Major 89 %
Unused Functions Dead code, All, Simple 1 1 Minor 53 %
Useless Type Check All, Dead code, OneFile 4 2 Minor 0 %
Uses Default Values Analyze, All, Simple, CI-checks 41 22 Minor 97 %
Methods Without Return All, Analyze 2 2 Minor 0 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks 7 4 Major 38 %
Wrong Returned Type All, Analyze, ClassReview, CI-checks 54 37 Minor 0 %
Wrong Type With Call All, Analyze, Typechecks, CI-checks 7 2 Minor 0 %
Undefined Interfaces Analyze, All, CI-checks 237 46 Major 67 %
Unresolved Use Analyze, ClearPHP, All, Simple 288 47 Major 65 %
Unused Use Dead code, ClearPHP, All, Simple 21 17 Major 54 %
No array_merge() In Loops Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks 1 1 Major 55 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks 41 28 Minor 74 %
strpos() Too Much All, Analyze, CI-checks 6 3 Minor 46 %
array_key_exists() Works On Arrays All, CompatibilityPHP74, Analyze 5 1 Minor 0 %
Assumptions All, Analyze 9 8 Minor 0 %
Detect Current Class All, Suggestions, CompatibilityPHP74 1 1 None 47 %
Wrong Parameter Type Analyze, OneFile, All, Simple, CI-checks 8 1 Major 45 %
List Short Syntax Internal, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All, Appinfo 1 1 Major 10 %
PHP 7.0 Scalar Typehints All, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 214 47 Critical 31 %
PHP Keywords As Names Analyze, All, Simple 35 16 Major 89 %
Scalar Are Not Arrays All, Analyze, CompatibilityPHP74, CI-checks 17 6 Minor 0 %
Use Nullable Type All, Appinfo, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 18 13 Major 21 %
Avoid Using stdClass All, Analyze, OneFile, Simple, Level 4 1 1 Minor 45 %
Usort Sorting In PHP 7.0 CompatibilityPHP70, All 1 1 Major 46 %
Wrong Type For Native PHP Function All, Analyze, CI-checks 5 4 Minor 0 %
Adding Zero Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks 1 1 Minor 33 %
Array_merge Needs Array Of Arrays All, Analyze 1 1 Minor 0 %
Buried Assignation Analyze, All 2 1 Minor 82 %
Check JSON All, Analyze, CI-checks 1 1 Major 64 %
Could Use Short Assignation Analyze, OneFile, Performances, All, Simple, CI-checks 2 2 Minor 60 %
Dont Change The Blind Var All, Analyze 1 1 Minor 72 %
Dont Mix ++ All, Analyze 2 2 Minor 43 %
Inconsistent Elseif All, Analyze 1 1 Major 73 %
Long Arguments All, Analyze 4 2 Minor 67 %
Nested Ifthen Analyze, All, RadwellCodes 1 1 Major 87 %
No Hardcoded Hash Analyze, Security, All, Simple 1 1 Critical 44 %
No Need For Else All, Analyze 1 1 Minor 74 %
No Need For Triple Equal All, Analyze 2 1 Minor 0 %
Avoid Substr() One Analyze, Performances, All, CompatibilityPHP71, Simple, Level 2, Suggestions, Top10, CI-checks 1 1 Minor 57 %
Variable Is Not A Condition All, Analyze 12 8 Minor 57 %
@ Operator Appinfo, ClearPHP, All, Analyze, Performances, CI-checks 1 1 Minor 66 %
Should Make Ternary All, Analyze, OneFile, Simple, CI-checks 4 4 Minor 85 %
Preprocessable Analyze, All, Rector 1 1 Minor 86 %
Static Loop Analyze, All, Simple, Level 4 3 3 Minor 65 %
Suspicious Comparison All, Analyze, Level 3 2 2 Major 15 %
Unconditional Break In Loop All, Analyze, Level 3, CI-checks 1 1 Major 46 %
Use Positive Condition All, Analyze, OneFile, Simple 3 2 Minor 81 %
String May Hold A Variable Analyze, All, Simple 19 19 Minor 58 %
Missing Returntype In Method All, Typehints, Analyze, CI-checks 10 7 Minor 0 %
Assigned Twice All, Analyze 8 3 Minor 78 %
Overwritten Literals Analyze, All 10 3 Major 78 %
Undefined Variable All, Analyze, CI-checks 24 7 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 1 1 Minor 87 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4 39 36 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple 11 4 Minor 78 %