Documentation

CodeAnalysis

Table of Contents

Classes

ConstructorDestructorReturnSniff
Verify that a class constructor/destructor does not return anything, nor has a return type declaration (fatal error).
ForeachUniqueAssignmentSniff
Detects using the same variable for both the key as well as the value in a foreach assignment.
NoDoubleNegativeSniff
Detects double negation in code, which is effectively the same as a boolean cast, but with a much higher cognitive load.
NoEchoSprintfSniff
Detects use of `echo [v]sprintf();.
StaticInFinalClassSniff
Forbid the use of the `static` keyword for late static binding in OO constructs which are final.

        
On this page

Search results