/src/Standards/Generic/Sniffs/Formatting/MultipleStatementAlignmentSniff.php:302 | 12 | - Missing Assignation In Branches
- Unsupported Types With Operators
- Nested Ifthen
- Useless Parenthesis
- Non Integer Nor String As Index
- Weak Type With Array
- Indices Are Int Or String
|
/src/Reports/Code.php:33 | 11 | - Unused Public Methods
- Use Named Boolean In Argument Definition
- Max Level Of Nesting
- Too Many Local Variables
- No Boolean As Default
- Undefined Classes
- Wrong Type With Default
- Method Could Be Static
|
/src/Reports/Full.php:33 | 11 | - Unused Public Methods
- Use Named Boolean In Argument Definition
- Max Level Of Nesting
- Too Many Local Variables
- No Boolean As Default
- Undefined Classes
- Wrong Type With Default
- Method Could Be Static
|
/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.1.inc:188 | 11 | - Method Is Not An If
- Variable Is Not A Condition
- Used Once Variables (In Scope)
- Wrong Number Of Arguments
- Uses Default Values
- Undefined Variable
- Undefined Classes
- Wrong Type Returned
- Missing Some Returntype
|
/src/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.inc:133 | 11 | - Type Must Be Returned
- No Class In Global
- Don't Pollute Global Space
- Unused Parameter
- Must Return Methods
- Used Once Variables (In Scope)
- Methods Without Return
- Empty Function
- StandaloneType True False Null
|
/src/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.inc:10 | 11 | - Type Must Be Returned
- No Class In Global
- Don't Pollute Global Space
- Unused Parameter
- Must Return Methods
- Used Once Variables (In Scope)
- Methods Without Return
- Empty Function
- StandaloneType True False Null
|
/src/Reports/Junit.php:34 | 10 | - Unused Public Methods
- Use Named Boolean In Argument Definition
- Max Level Of Nesting
- No Boolean As Default
- Undefined Classes
- Wrong Type With Default
- Method Could Be Static
|
/src/Reports/VersionControl.php:41 | 10 | - Unused Public Methods
- Use Named Boolean In Argument Definition
- Max Level Of Nesting
- Too Many Local Variables
- No Boolean As Default
- Undefined Classes
- Wrong Type With Default
|
/src/Standards/Generic/Sniffs/Formatting/MultipleStatementAlignmentSniff.php:289 | 10 | - Unsupported Types With Operators
- Overwritten Literals
- Useless Parenthesis
- Non Integer Nor String As Index
- Weak Type With Array
- Indices Are Int Or String
|
/src/Standards/PSR12/Tests/Classes/ClosingBraceUnitTest.inc:35 | 10 | - Unused Parameter
- Written Only Variables
- Used Once Variables (In Scope)
- Empty Function
- Undefined Classes
- Unused Inherited Variable In Closure
|
/src/Tokenizers/Tokenizer.php:933 | 10 | - No Default For Referenced Parameter
- Max Level Of Nesting
- Too Many Local Variables
- Unused Parameter
- Mismatched Default Arguments
- Undefined Classes
- Wrong Type With Default
|
/src/Reports/Checkstyle.php:33 | 9 | - Unused Public Methods
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Undefined Classes
- Wrong Type With Default
- Method Could Be Static
|
/src/Reports/Csv.php:32 | 9 | - Unused Public Methods
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Undefined Classes
- Wrong Type With Default
- Method Could Be Static
|
/src/Reports/Diff.php:32 | 9 | - Unused Public Methods
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Undefined Classes
- Wrong Type With Default
- Method Could Be Static
|
/src/Reports/Emacs.php:32 | 9 | - Unused Public Methods
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Undefined Classes
- Wrong Type With Default
- Method Could Be Static
|
/src/Reports/Info.php:33 | 9 | - Unused Public Methods
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Undefined Classes
- Wrong Type With Default
- Method Could Be Static
|
/src/Reports/Json.php:33 | 9 | - Unused Public Methods
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Undefined Classes
- Wrong Type With Default
- Method Could Be Static
|
/src/Reports/Notifysend.php:98 | 9 | - Unused Public Methods
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Undefined Classes
- Wrong Type With Default
- Method Could Be Static
|
/src/Reports/Source.php:33 | 9 | - Unused Public Methods
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Undefined Classes
- Wrong Type With Default
- Method Could Be Static
|
/src/Reports/Summary.php:33 | 9 | - Unused Public Methods
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Undefined Classes
- Wrong Type With Default
- Method Could Be Static
|
/src/Reports/Xml.php:33 | 9 | - Unused Public Methods
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Undefined Classes
- Wrong Type With Default
- Method Could Be Static
|
/src/Standards/PEAR/Sniffs/Functions/FunctionDeclarationSniff.php:372 | 9 | - Max Level Of Nesting
- Too Many Local Variables
- Should Use Local Class
- Undefined Classes
- Wrong Type With Default
- Method Could Be Static
|
/src/Standards/PSR12/Tests/Files/ImportStatementUnitTest.inc:19 | 9 | - Unused Parameter
- Written Only Variables
- Used Once Variables (In Scope)
- Empty Function
- Undefined Classes
- Unused Inherited Variable In Closure
|
/src/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.inc:80 | 9 | - Recycled Variables
- Variable Is Not A Condition
- Assigned Twice
- Double Instructions
- Overwritten Literals
- Buried Assignation
|
/src/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.inc:8 | 9 | - Recycled Variables
- Variable Is Not A Condition
- Assigned Twice
- Overwritten Literals
- Buried Assignation
- Undefined Variable
|
/src/Tokenizers/PHP.php:3417 | 9 | - Assumptions
- Useless Referenced Argument
- Unused Parameter
- Should Use Local Class
- Useless Argument
- Undefined Classes
- Method Could Be Static
|
/src/Reports/Cbf.php:39 | 8 | - Unused Public Methods
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Undefined Classes
- Wrong Type With Default
- Method Could Be Static
|
/src/Standards/PEAR/Tests/ControlStructures/ControlSignatureUnitTest.inc:88 | 8 | - Could Be Else
- Should Use Ternary Operator
- Assigned Twice
- If With Same Conditions
- Return True False
- Overwritten Literals
|
/src/Standards/PEAR/Tests/ControlStructures/ControlSignatureUnitTest.inc:104 | 8 | - Could Be Else
- Should Use Ternary Operator
- Assigned Twice
- If With Same Conditions
- Return True False
- Overwritten Literals
|
/src/Standards/PEAR/Tests/ControlStructures/ControlSignatureUnitTest.inc:132 | 8 | - Missing Assignation In Branches
- Could Be Else
- Assigned Twice
- If With Same Conditions
- Overwritten Literals
- Else If Versus Elseif
|
/src/Standards/PSR12/Tests/Classes/ClassInstantiationUnitTest.inc:32 | 8 | - Recycled Variables
- Undefined Properties
- self, parent, static Outside Class
- $this Belongs To Classes Or Traits
- Used Once Variables (In Scope)
- Parent, Static Or Self Outside Class
- Used Once Variables
- Undefined Variable
|
/src/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php:342 | 8 | - Missing Assignation In Branches
- Unsupported Types With Operators
- Use Positive Condition
- Nested Ifthen
- Useless Parenthesis
- Non Integer Nor String As Index
- Indices Are Int Or String
- Else If Versus Elseif
|
/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.11.inc:2 | 8 | - No Class In Global
- Don't Pollute Global Space
- Unresolved Use
- Multiple Class Declarations
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Several Instructions On The Same Line
- Class Could Be Final
|
/src/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.inc:47 | 8 | - Empty Blocks
- Identical Conditions
- Useless Parenthesis
- Undefined Interfaces
- Undefined Variable
- Undefined Classes
- Unresolved Instanceof
|
/src/Tokenizers/Tokenizer.php:1078 | 8 | - Missing Assignation In Branches
- Unsupported Types With Operators
- Non Integer Nor String As Index
- Weak Type With Array
- Indices Are Int Or String
- Else If Versus Elseif
|
/scripts/ValidatePEAR/ValidatePEARPackageXML.php:235 | 7 | - Missing Assignation In Branches
- strpos() Too Much
- Uses Default Values
- Don't Collect Void
- Use ::Class Operator
- Else If Versus Elseif
|
/src/Fixer.php:230 | 7 | - Unused Public Methods
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Undefined Classes
- Wrong Type With Default
- Never Called Parameter
|
/src/Standards/Generic/Sniffs/Functions/FunctionCallArgumentSpacingSniff.php:102 | 7 | - Max Level Of Nesting
- Unused Parameter
- Should Use Local Class
- Used Once Variables (In Scope)
- Undefined Classes
- Method Could Be Static
|
/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.php:26 | 7 | - Unused Public Methods
- Unused Parameter
- Should Use Local Class
- Used Once Variables (In Scope)
- Undefined Classes
- Method Could Be Static
|
/src/Standards/Generic/Tests/Commenting/FixmeUnitTest.php:29 | 7 | - Unused Public Methods
- Unused Parameter
- Should Use Local Class
- Used Once Variables (In Scope)
- Undefined Classes
- Wrong Type With Default
|
/src/Standards/Generic/Tests/Commenting/FixmeUnitTest.php:55 | 7 | - Unused Public Methods
- Unused Parameter
- Should Use Local Class
- Used Once Variables (In Scope)
- Undefined Classes
- Wrong Type With Default
|
/src/Standards/Generic/Tests/Commenting/TodoUnitTest.php:28 | 7 | - Unused Public Methods
- Unused Parameter
- Should Use Local Class
- Used Once Variables (In Scope)
- Undefined Classes
- Wrong Type With Default
|
/src/Standards/Generic/Tests/Commenting/TodoUnitTest.php:45 | 7 | - Unused Public Methods
- Unused Parameter
- Should Use Local Class
- Used Once Variables (In Scope)
- Undefined Classes
- Wrong Type With Default
|
/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.1.inc:252 | 7 | - Empty Loop
- Empty Blocks
- Static Loop
- Buried Assignation
- Several Instructions On The Same Line
- Pre-increment
|
/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.php:56 | 7 | - Unused Public Methods
- Unused Parameter
- Should Use Local Class
- Used Once Variables (In Scope)
- Undefined Classes
- Wrong Type With Default
|
/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.php:60 | 7 | - Unused Public Methods
- Unused Parameter
- Should Use Local Class
- Used Once Variables (In Scope)
- Undefined Classes
- Wrong Type With Default
|
/src/Standards/Generic/Tests/Files/ExecutableFileUnitTest.php:66 | 7 | - Unused Public Methods
- Unused Parameter
- Should Use Local Class
- Used Once Variables (In Scope)
- Undefined Classes
- Wrong Type With Default
|
/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.php:58 | 7 | - Unused Public Methods
- Unused Parameter
- Should Use Local Class
- Used Once Variables (In Scope)
- Undefined Classes
- Wrong Type With Default
|
/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.php:26 | 7 | - Unused Public Methods
- Unused Parameter
- Should Use Local Class
- Used Once Variables (In Scope)
- Undefined Classes
- Method Could Be Static
|
/src/Standards/Generic/Tests/Files/LineLengthUnitTest.php:26 | 7 | - Unused Public Methods
- Unused Parameter
- Should Use Local Class
- Used Once Variables (In Scope)
- Undefined Classes
- Method Could Be Static
|
/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.inc:5 | 7 | - Unsupported Types With Operators
- Variable Is Not A Condition
- Empty Blocks
- Wrong Number Of Arguments
- Uses Default Values
- Undefined Variable
- Don't Collect Void
|
/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.inc:40 | 7 | - Unsupported Types With Operators
- Variable Is Not A Condition
- Empty Blocks
- Wrong Number Of Arguments
- Uses Default Values
- Undefined Variable
- Don't Collect Void
|
/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.inc:57 | 7 | - Unsupported Types With Operators
- Variable Is Not A Condition
- Empty Blocks
- Wrong Number Of Arguments
- Uses Default Values
- Undefined Variable
- Don't Collect Void
|
/src/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.inc:10 | 7 | - Used Once Variables (In Scope)
- Used Once Variables
- Uses Default Values
- Undefined Variable
- @ Operator
- Strict Comparison With Booleans
|
/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.php:26 | 7 | - Unused Public Methods
- Unused Parameter
- Should Use Local Class
- Used Once Variables (In Scope)
- Undefined Classes
- Method Could Be Static
|
/src/Standards/MySource/Tests/Objects/CreateWidgetTypeCallbackUnitTest.php:28 | 7 | - Unused Public Methods
- Unused Parameter
- Should Use Local Class
- Used Once Variables (In Scope)
- Undefined Classes
- Wrong Type With Default
|
/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.inc:3 | 7 | - No Class In Global
- Don't Pollute Global Space
- Multiple Class Declarations
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Unused Classes
- Class Could Be Final
|
/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.inc:5 | 7 | - No Class In Global
- Don't Pollute Global Space
- Multiple Class Declarations
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Unused Classes
- Class Could Be Final
|
/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.inc:7 | 7 | - No Class In Global
- Don't Pollute Global Space
- Multiple Class Declarations
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Unused Classes
- Class Could Be Final
|
/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.inc:9 | 7 | - No Class In Global
- Don't Pollute Global Space
- Multiple Class Declarations
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Unused Classes
- Class Could Be Final
|
/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.inc:11 | 7 | - No Class In Global
- Don't Pollute Global Space
- Multiple Class Declarations
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Unused Classes
- Class Could Be Final
|
/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.inc:13 | 7 | - No Class In Global
- Don't Pollute Global Space
- Multiple Class Declarations
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Unused Classes
- Class Could Be Final
|
/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.inc:15 | 7 | - No Class In Global
- Don't Pollute Global Space
- Multiple Class Declarations
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Unused Classes
- Class Could Be Final
|
/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.15.inc:2 | 7 | - Don't Pollute Global Space
- Multiple Constant Definition
- Used Once Variables (In Scope)
- Use const
- Undefined Variable
- Implied If
- Logical Should Use Symbolic Operators
|
/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.16.inc:2 | 7 | - Don't Pollute Global Space
- Multiple Constant Definition
- Used Once Variables (In Scope)
- Use const
- Undefined Variable
- Implied If
- Logical Should Use Symbolic Operators
|
/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.php:45 | 7 | - Unused Public Methods
- Unused Parameter
- Should Use Local Class
- Used Once Variables (In Scope)
- Undefined Classes
- Wrong Type With Default
|
/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.php:59 | 7 | - Unused Public Methods
- Unused Parameter
- Should Use Local Class
- Used Once Variables (In Scope)
- Undefined Classes
- Wrong Type With Default
|
/src/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.inc:5 | 7 | - No Class In Global
- Don't Pollute Global Space
- Multiple Class Declarations
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Unused Classes
- Class Could Be Final
|
/src/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.inc:12 | 7 | - No Class In Global
- Don't Pollute Global Space
- Multiple Class Declarations
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Unused Classes
- Class Could Be Final
|
/src/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.inc:13 | 7 | - No Class In Global
- Don't Pollute Global Space
- Multiple Class Declarations
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Unused Classes
- Class Could Be Final
|
/src/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.inc:14 | 7 | - No Class In Global
- Don't Pollute Global Space
- Multiple Class Declarations
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Unused Classes
- Class Could Be Final
|
/src/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.php:26 | 7 | - Unused Public Methods
- Unused Parameter
- Should Use Local Class
- Used Once Variables (In Scope)
- Undefined Classes
- Method Could Be Static
|
/src/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.inc:964 | 7 | - Identical Consecutive Expression
- Empty Blocks
- Useless Switch
- Double Instructions
- Double Assignation
- Switch Without Default
- Undefined Variable
|
/src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.inc:18 | 7 | - Empty Loop
- Empty Blocks
- Static Loop
- Native Alias Functions Usage
- Uses Default Values
- Undefined Variable
- Pre-increment
|
/src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.inc:29 | 7 | - Empty Loop
- Empty Blocks
- Static Loop
- Native Alias Functions Usage
- $this Belongs To Classes Or Traits
- Uses Default Values
- Pre-increment
|
/src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.inc:49 | 7 | - Empty Loop
- Empty Blocks
- Static Loop
- Native Alias Functions Usage
- Uses Default Values
- Undefined Variable
- Pre-increment
|
/src/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.php:28 | 7 | - Unused Public Methods
- Unused Parameter
- Should Use Local Class
- Used Once Variables (In Scope)
- Undefined Classes
- Wrong Type With Default
|
/src/Tokenizers/Tokenizer.php:1035 | 7 | - Missing Assignation In Branches
- Unsupported Types With Operators
- Nested Ifthen
- Non Integer Nor String As Index
- Weak Type With Array
- Indices Are Int Or String
- Else If Versus Elseif
|
/autoload.php:28 | 6 | - Property Used In One Method Only
- Scalar Or Object Property
- Undefined Classes
- Wrong Type With Default
- Unfinished Object
- Property Could Be Local
|
/src/Generators/Text.php:242 | 6 | - No Null For Native PHP Functions
- Useless Parenthesis
- Uses Default Values
- Wrong Type For Native PHP Function
- Could Make A Function
- Echo With Concat
|
/src/Generators/Text.php:244 | 6 | - No Null For Native PHP Functions
- Useless Parenthesis
- Uses Default Values
- Wrong Type For Native PHP Function
- Could Make A Function
- Echo With Concat
|
/src/Standards/Generic/Sniffs/WhiteSpace/DisallowSpaceIndentSniff.php:34 | 6 | - Ambiguous Visibilities
- Property Used In One Method Only
- Undefined Classes
- Wrong Type With Default
- Unfinished Object
- Property Could Be Local
|
/src/Standards/Generic/Sniffs/WhiteSpace/DisallowTabIndentSniff.php:34 | 6 | - Ambiguous Visibilities
- Property Used In One Method Only
- Undefined Classes
- Wrong Type With Default
- Unfinished Object
- Property Could Be Local
|
/src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php:614 | 6 | - Unsupported Types With Operators
- Mixed Concat And Interpolation
- Non Integer Nor String As Index
- Weak Type With Array
- Indices Are Int Or String
- Echo With Concat
|
/src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php:1037 | 6 | - Unsupported Types With Operators
- Mixed Concat And Interpolation
- Non Integer Nor String As Index
- Weak Type With Array
- Indices Are Int Or String
- Echo With Concat
|
/src/Standards/Generic/Tests/Files/ExecutableFileUnitTest.php:28 | 6 | - strpos() Too Much
- Make Global A Property
- Useless Global
- Uses Default Values
- Global Usage
- No Parenthesis For Language Construct
|
/src/Standards/Generic/Tests/Files/OneClassPerFileUnitTest.inc:6 | 6 | - No Class In Global
- Don't Pollute Global Space
- Multiple Class Declarations
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Class Could Be Final
|
/src/Standards/Generic/Tests/Files/OneClassPerFileUnitTest.inc:10 | 6 | - No Class In Global
- Don't Pollute Global Space
- Multiple Class Declarations
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Class Could Be Final
|
/src/Standards/Generic/Tests/Files/OneObjectStructurePerFileUnitTest.inc:6 | 6 | - No Class In Global
- Don't Pollute Global Space
- Multiple Class Declarations
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Class Could Be Final
|
/src/Standards/Generic/Tests/Files/OneObjectStructurePerFileUnitTest.inc:10 | 6 | - No Class In Global
- Don't Pollute Global Space
- Multiple Class Declarations
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Class Could Be Final
|
/src/Standards/MySource/Sniffs/Channels/IncludeSystemSniff.php:293 | 6 | - Nested Ifthen
- No Need For Else
- Switch To Switch
- Bail Out Early
- Weak Type With Array
- Drop Else After Return
|
/src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.2.inc:7 | 6 | - No Class In Global
- Don't Pollute Global Space
- Empty Classes
- Undefined Interfaces
- Unused Classes
- Class Could Be Final
|
/src/Standards/PEAR/Tests/Formatting/MultiLineAssignmentUnitTest.inc:17 | 6 | - No Class In Global
- Use Named Boolean In Argument Definition
- Don't Pollute Global Space
- No Boolean As Default
- Unused Parameter
- Empty Function
|
/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.inc:17 | 6 | - No Class In Global
- Don't Pollute Global Space
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Unused Classes
- Class Could Be Final
|
/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.inc:19 | 6 | - No Class In Global
- Don't Pollute Global Space
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Unused Classes
- Class Could Be Final
|
/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.inc:40 | 6 | - No Class In Global
- Don't Pollute Global Space
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Unused Classes
- Class Could Be Final
|
/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.inc:44 | 6 | - No Class In Global
- Don't Pollute Global Space
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Unused Classes
- Class Could Be Final
|
/src/Standards/PSR1/Tests/Classes/ClassDeclarationUnitTest.1.inc:3 | 6 | - No Class In Global
- Don't Pollute Global Space
- Multiple Class Declarations
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Class Could Be Final
|
/src/Standards/PSR12/Tests/Classes/ClosingBraceUnitTest.inc:6 | 6 | - No Class In Global
- Don't Pollute Global Space
- Forgotten Interface
- Multiple Class Declarations
- Unused Classes
- Class Could Be Final
|
/src/Standards/PSR12/Tests/Classes/OpeningBraceSpaceUnitTest.inc:5 | 6 | - No Class In Global
- Don't Pollute Global Space
- Multiple Class Declarations
- Empty Classes
- Unused Classes
- Class Could Be Final
|
/src/Standards/PSR12/Tests/Classes/OpeningBraceSpaceUnitTest.inc:9 | 6 | - No Class In Global
- Don't Pollute Global Space
- Forgotten Interface
- Class, Interface, Enum Or Trait With Identical Names
- Unused Classes
- Class Could Be Final
|
/src/Standards/PSR12/Tests/Classes/OpeningBraceSpaceUnitTest.inc:41 | 6 | - Recycled Variables
- Identical Consecutive Expression
- Double Instructions
- Double Assignation
- Undefined Interfaces
- Class Could Be Final
|
/src/Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.inc:72 | 6 | - Identical Consecutive Expression
- Empty Blocks
- Useless Switch
- Double Instructions
- Double Assignation
- Switch Without Default
|
/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.inc:65 | 6 | - Used Once Variables (In Scope)
- Wrong Number Of Arguments
- Uses Default Values
- Undefined Variable
- Don't Collect Void
- Unused Returned Value
|
/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.inc:217 | 6 | - Printf Number Of Arguments
- self, parent, static Outside Class
- $this Belongs To Classes Or Traits
- Parent, Static Or Self Outside Class
- Uses Default Values
- Undefined Class Constants
|
/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.inc:222 | 6 | - self, parent, static Outside Class
- $this Belongs To Classes Or Traits
- Parent, Static Or Self Outside Class
- Undefined static:: Or self::
- Uses Default Values
- Weak Type With Array
|
/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.inc:233 | 6 | - Printf Number Of Arguments
- self, parent, static Outside Class
- $this Belongs To Classes Or Traits
- Parent, Static Or Self Outside Class
- Uses Default Values
- Undefined Class Constants
|
/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.inc:238 | 6 | - self, parent, static Outside Class
- $this Belongs To Classes Or Traits
- Parent, Static Or Self Outside Class
- Undefined static:: Or self::
- Uses Default Values
- Weak Type With Array
|
/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.10.inc:5 | 6 | - No Class In Global
- Don't Pollute Global Space
- Multiple Class Declarations
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Class Could Be Final
|
/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.12.inc:6 | 6 | - No Class In Global
- Don't Pollute Global Space
- Multiple Class Declarations
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Class Could Be Final
|
/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.13.inc:7 | 6 | - No Class In Global
- Don't Pollute Global Space
- Multiple Class Declarations
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Class Could Be Final
|
/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.14.inc:5 | 6 | - No Class In Global
- Don't Pollute Global Space
- Multiple Class Declarations
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Class Could Be Final
|
/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.8.inc:5 | 6 | - No Class In Global
- Don't Pollute Global Space
- Multiple Class Declarations
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Class Could Be Final
|
/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.9.inc:5 | 6 | - No Class In Global
- Don't Pollute Global Space
- Multiple Class Declarations
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Class Could Be Final
|
/src/Standards/Squiz/Sniffs/Commenting/BlockCommentSniff.php:24 | 6 | - Ambiguous Visibilities
- Property Used In One Method Only
- Undefined Classes
- Wrong Type With Default
- Unfinished Object
- Property Could Be Local
|
/src/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.inc:27 | 6 | - No Class In Global
- Don't Pollute Global Space
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Unused Classes
- Class Could Be Final
|
/src/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.inc:28 | 6 | - No Class In Global
- Don't Pollute Global Space
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Unused Classes
- Class Could Be Final
|
/src/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.inc:29 | 6 | - No Class In Global
- Don't Pollute Global Space
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Unused Classes
- Class Could Be Final
|
/src/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.inc:30 | 6 | - No Class In Global
- Don't Pollute Global Space
- Empty Classes
- Class, Interface, Enum Or Trait With Identical Names
- Unused Classes
- Class Could Be Final
|
/src/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.inc:469 | 6 | - Variable Is Not A Condition
- Empty Blocks
- Used Once Variables (In Scope)
- Undefined Variable
- No Choice
- Else If Versus Elseif
|
/src/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.inc:5 | 6 | - Recycled Variables
- Assigned Twice
- Double Instructions
- Double Assignation
- Written Only Variables
- Overwritten Literals
|
/src/Standards/Squiz/Tests/ControlStructures/InlineIfDeclarationUnitTest.inc:32 | 6 | - Cast To Boolean
- Return True False
- Wrong Number Of Arguments
- Wrong Argument Type
- Wrong Type With Call
- Don't Collect Void
|
/src/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.inc:19 | 6 | - Empty Blocks
- Wrong Number Of Arguments
- Undefined Variable
- Don't Collect Void
- Strict Comparison With Booleans
- Else If Versus Elseif
|
/src/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.inc:50 | 6 | - Empty Blocks
- Useless Parenthesis
- Undefined Interfaces
- Undefined Variable
- Undefined Classes
- Unresolved Instanceof
|
/src/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.inc:69 | 6 | - Recycled Variables
- Variable Is Not A Condition
- Assigned Twice
- Double Instructions
- Overwritten Literals
- Buried Assignation
|
/src/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.inc:112 | 6 | - Empty Loop
- Variable Is Not A Condition
- Empty Blocks
- Static Loop
- Useless Parenthesis
- Pre-increment
|
/src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.inc:2 | 6 | - Empty Loop
- Empty Blocks
- Static Loop
- Uses Default Values
- Undefined Variable
- Pre-increment
|
/src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.inc:13 | 6 | - Empty Loop
- Empty Blocks
- Static Loop
- $this Belongs To Classes Or Traits
- Uses Default Values
- Pre-increment
|
/src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.inc:23 | 6 | - Empty Loop
- Empty Blocks
- Static Loop
- Native Alias Functions Usage
- Uses Default Values
- Undefined Variable
|
/src/Standards/Squiz/Tests/PHP/InnerFunctionsUnitTest.inc:62 | 6 | - No Class In Global
- Don't Pollute Global Space
- Forgotten Interface
- Multiple Class Declarations
- Deep Definitions
- Class Could Be Final
|
/src/Tokenizers/Tokenizer.php:1643 | 6 | - Unsupported Types With Operators
- Nested Ifthen
- Non Integer Nor String As Index
- Weak Type With Array
- Indices Are Int Or String
- Else If Versus Elseif
|