Method | Description | |
---|---|---|
process ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void | Processes this sniff, when one of its tokens is encountered. | |
processMultiLineArray ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr, integer $arrayStart, integer $arrayEnd ) : void | Processes a multi-line array definition. | |
processSingleLineArray ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr, integer $arrayStart, integer $arrayEnd ) : void | Processes a single-line array definition. | |
register ( ) : array | Returns an array of tokens this test wants to listen for. |
public processMultiLineArray ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr, integer $arrayStart, integer $arrayEnd ) : void | ||
$phpcsFile | PHP_CodeSniffer_File | The current file being checked. |
$stackPtr | integer | The position of the current token in the stack passed in $tokens. |
$arrayStart | integer | The token that starts the array definition. |
$arrayEnd | integer | The token that ends the array definition. |
return | void |
public processSingleLineArray ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr, integer $arrayStart, integer $arrayEnd ) : void | ||
$phpcsFile | PHP_CodeSniffer_File | The current file being checked. |
$stackPtr | integer | The position of the current token in the stack passed in $tokens. |
$arrayStart | integer | The token that starts the array definition. |
$arrayEnd | integer | The token that ends the array definition. |
return | void |