public function CloseBracketSpacingSniff::register in Coder 8.3
Same name and namespace in other branches
- 8.2 coder_sniffer/Drupal/Sniffs/WhiteSpace/CloseBracketSpacingSniff.php \Drupal\Sniffs\WhiteSpace\CloseBracketSpacingSniff::register()
- 8.3.x coder_sniffer/Drupal/Sniffs/WhiteSpace/CloseBracketSpacingSniff.php \Drupal\Sniffs\WhiteSpace\CloseBracketSpacingSniff::register()
Returns an array of tokens this test wants to listen for.
Return value
array<int|string>
File
- coder_sniffer/
Drupal/ Sniffs/ WhiteSpace/ CloseBracketSpacingSniff.php, line 34
Class
- CloseBracketSpacingSniff
- Checks that there is no white space before a closing bracket, for ")" and "}". Square Brackets are handled by \PHP_CodeSniffer\Standards\Squiz\Sniffs\Arrays\ArrayBracketSpacingSniff.
Namespace
Drupal\Sniffs\WhiteSpaceCode
public function register() {
return [
T_CLOSE_CURLY_BRACKET,
T_CLOSE_PARENTHESIS,
T_CLOSE_SHORT_ARRAY,
];
}