Property | Type | Description | |
---|---|---|---|
$error | boolean | If true, an error will be thrown; otherwise a warning. | |
$maxPadding | integer | If the amount of padding required to align this assignment with the surrounding assignments exceeds this number, the assignment will be ignored and no errors or warnings will be thrown. | |
$supportedTokenizers | array | A list of tokenizers this sniff supports. |
Method | Description | |
---|---|---|
checkAlignment ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : integer | Processes this test, when one of its tokens is encountered. | |
process ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : integer | Processes this test, when one of its tokens is encountered. | |
register ( ) : array | Returns an array of tokens this test wants to listen for. |
public checkAlignment ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : integer | ||
$phpcsFile | PHP_CodeSniffer_File | The file being scanned. |
$stackPtr | integer | The position of the current token in the stack passed in $tokens. |
return | integer |
public bool $error | ||
return | boolean |
public int $maxPadding | ||
return | integer |
public array $supportedTokenizers | ||
return | array |