You are here

public function SpaceInlineIfSniff::register in Coder 8.3.x

Same name and namespace in other branches
  1. 8.3 coder_sniffer/Drupal/Sniffs/Formatting/SpaceInlineIfSniff.php \Drupal\Sniffs\Formatting\SpaceInlineIfSniff::register()
  2. 8.2 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\Formatting

Code

public function register() {
  return [
    T_INLINE_ELSE,
  ];
}