You are here

public function NamespaceSniff::register in Coder 8.2

Same name and namespace in other branches
  1. 8.3 coder_sniffer/Drupal/Sniffs/WhiteSpace/NamespaceSniff.php \Drupal\Sniffs\WhiteSpace\NamespaceSniff::register()
  2. 8.3.x coder_sniffer/Drupal/Sniffs/WhiteSpace/NamespaceSniff.php \Drupal\Sniffs\WhiteSpace\NamespaceSniff::register()

Returns an array of tokens this test wants to listen for.

Return value

array

File

coder_sniffer/Drupal/Sniffs/WhiteSpace/NamespaceSniff.php, line 31

Class

NamespaceSniff
Checks that there is exactly one space after the namespace keyword.

Namespace

Drupal\Sniffs\WhiteSpace

Code

public function register() {
  return array(
    T_NAMESPACE,
  );
}