public function SpaceInlineIfSniff::register in Coder 8.3
Same name and namespace in other branches
- 8.2 coder_sniffer/Drupal/Sniffs/Formatting/SpaceInlineIfSniff.php \Drupal\Sniffs\Formatting\SpaceInlineIfSniff::register()
- 8.3.x coder_sniffer/Drupal/Sniffs/Formatting/SpaceInlineIfSniff.php \Drupal\Sniffs\Formatting\SpaceInlineIfSniff::register()
Returns an array of tokens this test wants to listen for.
Return value
array<int|string>
File
- coder_sniffer/
Drupal/ Sniffs/ Formatting/ SpaceInlineIfSniff.php, line 31
Class
- SpaceInlineIfSniff
- Checks that there is no space between "?" and ":" inline if/else statements.
Namespace
Drupal\Sniffs\FormattingCode
public function register() {
return [
T_INLINE_ELSE,
];
}