You are here

public function InlineVariableCommentSniff::register in Coder 8.3

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

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

Return value

array<int|string>

File

coder_sniffer/Drupal/Sniffs/Commenting/InlineVariableCommentSniff.php, line 33

Class

InlineVariableCommentSniff
Checks for the correct usage of inline variable type declarations.

Namespace

Drupal\Sniffs\Commenting

Code

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