public function NamespaceSniff::register in Coder 8.3.x
Same name and namespace in other branches
- 8.3 coder_sniffer/Drupal/Sniffs/WhiteSpace/NamespaceSniff.php \Drupal\Sniffs\WhiteSpace\NamespaceSniff::register()
- 8.2 coder_sniffer/Drupal/Sniffs/WhiteSpace/NamespaceSniff.php \Drupal\Sniffs\WhiteSpace\NamespaceSniff::register()
Returns an array of tokens this test wants to listen for.
Return value
array<int|string>
File
- coder_sniffer/
Drupal/ Sniffs/ WhiteSpace/ NamespaceSniff.php, line 31
Class
- NamespaceSniff
- Checks that there is exactly one space after the namespace keyword.
Namespace
Drupal\Sniffs\WhiteSpaceCode
public function register() {
return [
T_NAMESPACE,
];
}