public function FunctionWatchdogSniff::registerFunctionNames in Coder 8.3
Same name and namespace in other branches
- 8.2 coder_sniffer/Drupal/Sniffs/Semantics/FunctionWatchdogSniff.php \Drupal\Sniffs\Semantics\FunctionWatchdogSniff::registerFunctionNames()
- 8.3.x coder_sniffer/Drupal/Sniffs/Semantics/FunctionWatchdogSniff.php \Drupal\Sniffs\Semantics\FunctionWatchdogSniff::registerFunctionNames()
Returns an array of function names this test wants to listen for.
Return value
array<string>
File
- coder_sniffer/
Drupal/ Sniffs/ Semantics/ FunctionWatchdogSniff.php, line 30
Class
- FunctionWatchdogSniff
- Checks that the second argument to watchdog() is not enclosed with t().
Namespace
Drupal\Sniffs\SemanticsCode
public function registerFunctionNames() {
return [
'watchdog',
];
}