Classes |
ClassDeclaration |
Y |
N |
Definition: no spaces between class name and brace, only one new line by itself
|
ControlStructures |
ControlSignature |
Y |
N |
Definition: conditions and control structures must have a space before and after the parentheses
Definition: conditions and control structures opening bracket must be on the same line followed only by a new line
|
ControlStructures |
InlineControlStructure |
N |
Y |
Definition: warn on inline control structures, not error
PEAR Property - error: false
|
Files |
LineEndings |
Y |
Y |
Zend Property - eolChar: \n
PEAR Property - eolChar: \n
|
Files |
LineLength |
Y |
Y |
Zend Property - lineLimit: 80
Zend Property - absoluteLineLimit: 120
PEAR Property - lineLimit: 85
PEAR Property - absoluteLineLimit: 0
|
Functions |
FunctionCallArgumentSpacing |
Y |
Y |
Definition: no space before comma in function call (getStudent($pidm , $term) vs getStudent($pidm, $term))
Definition: must have a space after a comma in a function call (getStudent($pidm,$term) vs getStudent($pidm, $term))
|
Functions |
FunctionCallArgumentSpacing.TooMuchSpaceAfterComma |
N |
Y |
Definition: spaces after comma allowed for alignment purposes
|
Functions |
FunctionCallSignature |
Y |
N |
Definition: space before opening parenthesis of function call prohibited
Definition: space after closing parenthesis of function call prohibited
Definition: space after opening parenthesis of function call prohibited (SingleLineCall)
Definition: multi-line function call not indented correctly; Line following opening parentheses must be indented one more than the function itself
Definition: opening parenthesis of a multi-line function call must be the last content on the line
Definition: closing parenthesis of a multi-line function call must be on a line by itself
|
Functions |
GlobalFunction |
Y |
N |
Definition: no global functions allowed except for _autoload
|
Functions |
OpeningFunctionBraceBsdAllman |
Y |
N |
Definition: no spaces between function/method name and brace, only one new line by itself
|
Functions |
ValidDefaultValue |
Y |
N |
Definition: arguments with default values must be at the end of the argument list
|
NamingConventions |
UpperCaseConstantName |
N |
Y |
Definition: constants must be uppercase
|
PHP |
DisallowShortOpenTag |
Y |
Y |
Definition: no short opening tags allowed; Must be <?php not <? or <?=
|
PHP |
LowerCaseConstant |
N |
Y |
Definition: TRUE, FALSE and NULL must be lowercase
|
WhiteSpace |
DisallowTabIndent |
Y |
Y |
Definition: spaces must be used to indent lines; tabs are not allowed
|
WhiteSpace |
ScopeClosingBrace |
Y |
N |
Definition: closing brace indented incorrectly
Definition: break statement indented incorrectly; Must be indented one more than the case statement
Definition: closing brace must be on a line by itself
|