You are here

public function FunctionDeclarationSniff::register in Coder 8.2

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

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

Return value

array

File

coder_sniffer/Drupal/Sniffs/Functions/FunctionDeclarationSniff.php, line 35

Class

FunctionDeclarationSniff
Ensure that there is only one space after the function keyword and no space before the opening parenthesis.

Namespace

Drupal\Sniffs\Functions

Code

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