You are here

public function ClassNameSniff::register in Coder 8.3

Same name and namespace in other branches
  1. 8.2 coder_sniffer/DrupalPractice/Sniffs/General/ClassNameSniff.php \DrupalPractice\Sniffs\General\ClassNameSniff::register()
  2. 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<int|string>

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\General

Code

public function register() {
  return [
    T_CLASS,
    T_INTERFACE,
  ];
}