Property | Type | Description | |
---|---|---|---|
$exact | boolean | If TRUE, indent needs to be exactly $indent spaces. If FALSE, indent needs to be at least $indent spaces (but can be more). | |
$ignoreIndentationTokens | int[] | Useful to allow Sniffs based on this to easily ignore/skip some tokens from verification. For example, inline HTML sections or PHP open/close tags can escape from here and have their own rules elsewhere. | |
$indent | integer | The number of spaces code should be indented. | |
$supportedTokenizers | array | A list of tokenizers this sniff supports. | |
$tabIndent | boolean | If TRUE, fixes will be made using tabs instead of spaces. The size of each tab is important, so it should be specified using the --tab-width CLI argument. |
Property | Type | Description | |
---|---|---|---|
$nonIndentingScopes | int[] | Any scope openers that should not cause an indent. |
Method | Description | |
---|---|---|
process ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void | Processes this test, when one of its tokens is encountered. | |
register ( ) : array | Returns an array of tokens this test wants to listen for. |
public bool $exact | ||
return | boolean |
public int[] $ignoreIndentationTokens | ||
return | int[] |
public int $indent | ||
return | integer |
protected int[] $nonIndentingScopes | ||
return | int[] |
public array $supportedTokenizers | ||
return | array |
public bool $tabIndent | ||
return | boolean |