This line was removed.
This word was removed. This word was added.
This line was added.

Changes (6)

View Page History
These tests are called "Sniffs" and include the following:

h2. Commenting Sniffs
* *InlineCommentSniff:* Checks that no perl-style comments (#)are used

h2. File Sniffs
* *ClosingTagSniff:* Checks that the file does not include a closing tag wether at file end nor inline for output purposes

h2. Function Sniffs
* *GlobalFunctionSniff:* Tests for functions outside of classes
* *OpeningFunctionBraceSniff:* Checks that the opening brace of a function is on the line after the function declaration

h2. Naming Conventions Sniffs
* *UpperCaseConstantNameSniff:* Ensures that constant names are all uppercase
* *LowerCaseConstantSniff:* Checks that all uses of 'true', 'false' and 'null' are lowercase
* *UpperCaseConstantNameSniff:* Ensures that constant names are all uppercase
* *ValidClassNameSniff:* Ensures class and interface names start with a capital letter and use _ separators

h2. PHP Sniffs
* *DisallowShortOpenTagSniff:* Makes sure that shorthand PHP open tags are not used ("<?"), but allows open tag with echo ("<?="). short_open_tag must be set to true for this test to work
* *GlobalKeywordSniff:* Stops the usage of the "global" keyword.

h2. Whitespace Sniffs
* *DisallowTabSniff:* Checks if tabs are used and errors if any are found
* *SemicolonSpacingSniff:* Ensure there is no whitespace before a semicolon

Feel free to mention tests that should be added...