public function TCheckPlainSniff::registerFunctionNames in Coder 8.3.x
Same name and namespace in other branches
- 8.3 coder_sniffer/DrupalPractice/Sniffs/FunctionCalls/TCheckPlainSniff.php \DrupalPractice\Sniffs\FunctionCalls\TCheckPlainSniff::registerFunctionNames()
- 8.2 coder_sniffer/DrupalPractice/Sniffs/FunctionCalls/TCheckPlainSniff.php \DrupalPractice\Sniffs\FunctionCalls\TCheckPlainSniff::registerFunctionNames()
Returns an array of function names this test wants to listen for.
Return value
array<string>
File
- coder_sniffer/
DrupalPractice/ Sniffs/ FunctionCalls/ TCheckPlainSniff.php, line 32
Class
- TCheckPlainSniff
- Check that "@" and "%" placeholders in t()/watchdog() are not escaped twice with check_plain().
Namespace
DrupalPractice\Sniffs\FunctionCallsCode
public function registerFunctionNames() {
return [
't',
'watchdog',
];
}