This test essentially checks that code is correctly formatted with whitespace.
[line 50]
The current file being checked.[line 43]
If true, comments will be ignored if they are found in the code.PHP_CodeSniffer_Standards_AbstractPatternSniff __construct(
[boolean
$ignoreComments = null])
string[] getPatterns(
)
Overridden in child classes as:
string prepareError(
string
$found, string
$patternCode)
void process(
PHP_CodeSniffer_File
$phpcsFile, int
$stackPtr)
array processPattern(
array
$patternInfo, PHP_CodeSniffer_File
$phpcsFile, int
$stackPtr)
void processSupplementary(
PHP_CodeSniffer_File
$phpcsFile, int
$stackPtr)
int[] register(
)
Classes extending AbstractPatternTest should implement the getPatterns() method to register the patterns they wish to test.
int[] registerSupplementary(
)
A sniff may wish to register supplementary tests when it wishes to group an arbitrary validation that cannot be performed using a pattern, with other pattern tests.