public function CloseBracketSpacingSniff::register in Coder 8.2
Same name and namespace in other branches
- 8.3 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
File
- coder_sniffer/
Drupal/ Sniffs/ WhiteSpace/ CloseBracketSpacingSniff.php, line 44
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 array(
T_CLOSE_CURLY_BRACKET,
T_CLOSE_PARENTHESIS,
T_CLOSE_SHORT_ARRAY,
);
}