You are here

public function Drupal_Sniffs_ControlStructures_TemplateControlStructureSniff::register in Coder 7.2

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

Return value

array

File

coder_sniffer/Drupal/Sniffs/ControlStructures/TemplateControlStructureSniff.php, line 29

Class

Drupal_Sniffs_ControlStructures_TemplateControlStructureSniff
Checks that control structures in template files use the alternative syntax with ":" and end statements.

Code

public function register() {
  return array(
    T_IF,
    T_WHILE,
    T_SWITCH,
    T_ELSE,
    T_ELSEIF,
    T_FOR,
    T_FOREACH,
  );
}