You are here

public function SpaceUnaryOperatorSniff::register in Coder 8.3

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

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

Return value

array<int|string>

File

coder_sniffer/Drupal/Sniffs/Formatting/SpaceUnaryOperatorSniff.php, line 35

Class

SpaceUnaryOperatorSniff
\PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\SpaceUnaryOperatorSniff.

Namespace

Drupal\Sniffs\Formatting

Code

public function register() {
  return [
    T_DEC,
    T_INC,
    T_MINUS,
    T_PLUS,
    T_BOOLEAN_NOT,
  ];
}