This ruleset focuses on classes construction issues, and their related structures : traits, interfaces, methods, properties, constants.
Total : 100 analysis
Final Class Usage
Final Methods Usage
Classes Mutually Extending Each Other
Could Use self
Constant Class
Redefined Property
Useless Interfaces
Could Be Class Constant
Could Be A Static Variable
No Self Referencing Constant
Property Could Be Private
Redefined Methods
Class Should Be Final By Ocramius
Could Be Protected Property
Raised Access Level
Could Be Private Class Constant
Could Be Protected Class Constant
Method Could Be Private Method
Could Be Protected Method
Property Could Be Local
Could Be Abstract Class
Class Could Be Final
Wrong Access Style to Property
Unreachable Class Constant
Avoid Self In Interface
Self Using Trait
Method Could Be Static
Avoid option arrays in constructors
Memoize MagicCall
Unused Class Constant
Dependant Abstract Classes
Wrong Type Returned
Disconnected Classes
Class Without Parent
Interfaces Is Not Implemented
Interfaces Don’t Ensure Properties
Non Nullable Getters
Insufficient Property Type
Exceeding Type
Nullable Without Check
Fossilized Method
Uninitialized Property
Wrong Typed Property Default
Implicit Nullable Type
Missing Abstract Method
Unused Trait In Class
Cyclic References
Double Object Assignation
Mismatch Properties Types
Different Argument Counts
Could Be Parent Method
Cancel Common Method
Modified Typed Parameter
Useless Type
Could Be Stringable
Final Private Methods
Missing __isset() Method
No Static Variable In A Method
Inherited Property Type Must Match
Abstract Class Constants
Missing Visibility
Unreachable Method
Undefined Methods
Unfinished Object
Undefined Enumcase
Can’t Overwrite Final Constant
No Constructor In Interface
Lowered Access Level
Used Once Trait
Parent Is Not Static
No Magic Method For Enum
No Readonly Assignation In Global
Could Set Property Default
Wrong Type With Default
Same Name For Property And Method
Magic Method Returntype Is Restricted
Could Inject Parameter
Set Chaining Exception
Useless Assignation Of Promoted Property
Type Dodging
Class Could Be Readonly
Class Invasion
Property Invasion
Different Constructors
Sidelined Method
Rewrote Final Class Constant
Useless Constant Overwrite
Incompatible Property Between Class And Trait
Static Call With Self
Property Cannot Be Readonly
Static Methods Cannot Call Non-Static Methods
Untyped No Default Properties
Trait Is Not A Type
Cant Instantiate Non Class
Multiple Property Declaration
No Null With Null Safe Operator
Could Be Readonly Property
New Object Then Immediate Call
Property Export
Useless NullSafe Operator
Short name
ClassReview
Available in
Entreprise Edition, Exakat Cloud
GETTING STARTED
USER GUIDE
REFERENCE GUIDE
ADMINISTRATOR GUIDE
OTHERS