You are here

public function DbQuerySniff::registerFunctionNames in Coder 8.2

Same name and namespace in other branches
  1. 8.3 coder_sniffer/DrupalPractice/Sniffs/FunctionCalls/DbQuerySniff.php \DrupalPractice\Sniffs\FunctionCalls\DbQuerySniff::registerFunctionNames()
  2. 8.3.x coder_sniffer/DrupalPractice/Sniffs/FunctionCalls/DbQuerySniff.php \DrupalPractice\Sniffs\FunctionCalls\DbQuerySniff::registerFunctionNames()

Returns an array of function names this test wants to listen for.

Return value

array

File

coder_sniffer/DrupalPractice/Sniffs/FunctionCalls/DbQuerySniff.php, line 32

Class

DbQuerySniff
Check that UPDATE/DELETE queries are not used in db_query() in Drupal 7.

Namespace

DrupalPractice\Sniffs\FunctionCalls

Code

public function registerFunctionNames() {
  return array(
    'db_query',
  );
}