public function FunctionDeclarationSniff::register in Coder 8.3.x
Same name and namespace in other branches
- 8.3 coder_sniffer/Drupal/Sniffs/Functions/FunctionDeclarationSniff.php \Drupal\Sniffs\Functions\FunctionDeclarationSniff::register()
- 8.2 coder_sniffer/Drupal/Sniffs/Functions/FunctionDeclarationSniff.php \Drupal\Sniffs\Functions\FunctionDeclarationSniff::register()
Returns an array of tokens this test wants to listen for.
Return value
array<int|string>
File
- coder_sniffer/
Drupal/ Sniffs/ Functions/ FunctionDeclarationSniff.php, line 35
Class
- FunctionDeclarationSniff
- Ensure that there is only one space after the function keyword and no space before the opening parenthesis.
Namespace
Drupal\Sniffs\FunctionsCode
public function register() {
return [
T_FUNCTION,
];
}