You are here

public function GetRequestDataSniff::register in Coder 8.3

Same name and namespace in other branches
  1. 8.3.x coder_sniffer/DrupalPractice/Sniffs/Variables/GetRequestDataSniff.php \DrupalPractice\Sniffs\Variables\GetRequestDataSniff::register()

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

Return value

array<int|string>

File

coder_sniffer/DrupalPractice/Sniffs/Variables/GetRequestDataSniff.php, line 36

Class

GetRequestDataSniff
Ensures that Symfony request object is used to access super globals.

Namespace

DrupalPractice\Sniffs\Variables

Code

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