Skip to content
On this page

PEAR Sniffs

ClassDeclaration

Checks the declaration of the class is correct.

ClassComment

Parses and verifies the doc comments for classes.

FileComment

Parses and verifies the doc comments for files.

FunctionComment

Parses and verifies the doc comments for functions.

InlineComment

Checks that no Perl-style comments are used.

ControlSignature

Verifies that control statements conform to their coding standards.

MultiLineCondition

Ensure multi-line IF conditions are defined correctly.

IncludingFile

Ensure include_once is used in conditional situations and require_once is used elsewhere.

Also checks that brackets do not surround the file being included.

MultiLineAssignment

If an assignment goes over two lines, ensure the equal sign is indented.

FunctionCallSignature

Ensures function calls are formatted correctly.

FunctionDeclaration

Ensure single and multi-line function declarations are defined correctly.

ValidDefaultValue

Ensures function params with default values are at the end of the declaration.

ValidClassName

Ensures class and interface names start with a capital letter and use _ separators.

ValidFunctionName

Ensures method and function names are correct.

ValidVariableName

Checks the naming of member variables.

ObjectOperatorIndent

Checks that object operators are indented correctly.

ScopeClosingBrace

Checks that the closing braces of scopes are aligned correctly.

ScopeIndent

Checks that control structures are structured and indented correctly.

Released under the MIT License.