public function ClassNameSniff::register in Coder 8.2
Same name and namespace in other branches
- 8.3 coder_sniffer/DrupalPractice/Sniffs/General/ClassNameSniff.php \DrupalPractice\Sniffs\General\ClassNameSniff::register()
- 8.3.x coder_sniffer/DrupalPractice/Sniffs/General/ClassNameSniff.php \DrupalPractice\Sniffs\General\ClassNameSniff::register()
Returns an array of tokens this test wants to listen for.
Return value
array
File
- coder_sniffer/
DrupalPractice/ Sniffs/ General/ ClassNameSniff.php, line 33
Class
- ClassNameSniff
- Checks that classes without namespaces are properly prefixed with the module name.
Namespace
DrupalPractice\Sniffs\GeneralCode
public function register() {
return array(
T_CLASS,
T_INTERFACE,
);
}