public function DeprecatedSniff::register in Coder 8.3
Same name and namespace in other branches
- 8.3.x 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\CommentingCode
public function register() {
if (defined('PHP_CODESNIFFER_IN_TESTS') === true) {
$this->debug = false;
}
return [
T_DOC_COMMENT_TAG,
];
}