Свойство | Тип | Описание | |
---|---|---|---|
$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. |
Метод | Описание | |
---|---|---|
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. |
Результат | void |
public int $equalsSpacing | ||
Результат | integer |
public int $requiredSpacesAfterOpen | ||
Результат | integer |
public int $requiredSpacesBeforeClose | ||
Результат | integer |