Property | Type | Description | |
---|---|---|---|
$equalsSpacing | integer | How many spaces should surround the equals signs. | |
$requiredSpacesAfterOpen | integer | How many spaces should follow the opening bracket. | |
$requiredSpacesBeforeClose | integer | How many spaces should precede the closing bracket. |
Method | Description | |
---|---|---|
process ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void | Processes this test, when one of its tokens is encountered. | |
processBracket ( PHP_CodeSniffer_File $phpcsFile, integer $openBracket ) : void | Processes the contents of a single set of brackets. | |
register ( ) : array | Returns an array of tokens this test wants to listen for. |
public processBracket ( PHP_CodeSniffer_File $phpcsFile, integer $openBracket ) : void | ||
$phpcsFile | PHP_CodeSniffer_File | The file being scanned. |
$openBracket | integer | The position of the open bracket in the stack passed in $tokens. |
return | void |
public int $equalsSpacing | ||
return | integer |
public int $requiredSpacesAfterOpen | ||
return | integer |
public int $requiredSpacesBeforeClose | ||
return | integer |