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