You are here

public function FunctionWatchdogSniff::registerFunctionNames in Coder 8.3.x

Same name and namespace in other branches
  1. 8.3 coder_sniffer/Drupal/Sniffs/Semantics/FunctionWatchdogSniff.php \Drupal\Sniffs\Semantics\FunctionWatchdogSniff::registerFunctionNames()
  2. 8.2 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\Semantics

Code

public function registerFunctionNames() {
  return [
    'watchdog',
  ];
}