You are here

public function ControlSignatureSniff::register in Coder 8.3.x

Same name and namespace in other branches
  1. 8.3 coder_sniffer/Drupal/Sniffs/ControlStructures/ControlSignatureSniff.php \Drupal\Sniffs\ControlStructures\ControlSignatureSniff::register()
  2. 8.2 coder_sniffer/Drupal/Sniffs/ControlStructures/ControlSignatureSniff.php \Drupal\Sniffs\ControlStructures\ControlSignatureSniff::register()

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

Return value

int[]

File

coder_sniffer/Drupal/Sniffs/ControlStructures/ControlSignatureSniff.php, line 36

Class

ControlSignatureSniff
Verifies that control statements conform to their coding standards.

Namespace

Drupal\Sniffs\ControlStructures

Code

public function register() {
  return [
    T_TRY,
    T_CATCH,
    T_DO,
    T_WHILE,
    T_FOR,
    T_IF,
    T_FOREACH,
    T_ELSE,
    T_ELSEIF,
    T_SWITCH,
  ];
}