You are here

public function ValidGlobalSniff::register in Coder 8.2

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

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

Return value

array

File

coder_sniffer/Drupal/Sniffs/NamingConventions/ValidGlobalSniff.php, line 82

Class

ValidGlobalSniff
Ensures that global variables start with an underscore.

Namespace

Drupal\Sniffs\NamingConventions

Code

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