You are here

public function DeprecatedSniff::register in Coder 8.3.x

Same name and namespace in other branches
  1. 8.3 coder_sniffer/Drupal/Sniffs/Commenting/DeprecatedSniff.php \Drupal\Sniffs\Commenting\DeprecatedSniff::register()

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

Return value

array<int|string>

File

coder_sniffer/Drupal/Sniffs/Commenting/DeprecatedSniff.php, line 41

Class

DeprecatedSniff
Ensures standard format of @ deprecated tag text in docblock.

Namespace

Drupal\Sniffs\Commenting

Code

public function register() {
  if (defined('PHP_CODESNIFFER_IN_TESTS') === true) {
    $this->debug = false;
  }
  return [
    T_DOC_COMMENT_TAG,
  ];
}