facebook pixelCodiga Analysis PHP Rules, category code style
BACK TO LIST

PHP rules

Codiga provides multiple sets of rules for 12+ languages. Below we provide a link and a description for all the rules supported by our platform. Note that not all the rules are being listed and described below.

BooleanArgumentFlag

Code style
Critical

Check method that have a boolean argument, it's often a bad design decision

Learn more

ConstantNamingConventions

Code style
Informational

Constants should be defined in uppercase

ConstructorWithNameAsEnclosingClass

Code style
Informational

Classes should not have a constructor method with the same name as the class

ElseExpression

Code style
Critical

Check for code simplification and not use else when not necessary

LongClassName

Code style
Informational

Long class name