facebook pixelCodiga Analysis PHP Rules, severity informational
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.

BooleanGetMethodName

Design
Informational

getter methods which returns a boolean should be named 'is...()' or 'has...()'

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

DepthOfInheritance

Design
Informational

Ensure that class hirearchy is not too large

EvalExpression

Design
Informational

Check for eval expression.

GotoStatement

Design
Informational

Do not use goto

LongClassName

Code style
Informational

Long class name