public function ControlSignatureSniff::register in Coder 8.2
Same name and namespace in other branches
- 8.3 coder_sniffer/Drupal/Sniffs/ControlStructures/ControlSignatureSniff.php \Drupal\Sniffs\ControlStructures\ControlSignatureSniff::register()
- 8.3.x 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 46
Class
- ControlSignatureSniff
- Verifies that control statements conform to their coding standards.
Namespace
Drupal\Sniffs\ControlStructuresCode
public function register() {
return array(
T_TRY,
T_CATCH,
T_DO,
T_WHILE,
T_FOR,
T_IF,
T_FOREACH,
T_ELSE,
T_ELSEIF,
T_SWITCH,
);
}