You are here

public function DocCommentSniff::register in Coder 8.3.x

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

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

Return value

array<int|string>

File

coder_sniffer/Drupal/Sniffs/Commenting/DocCommentSniff.php, line 35
Ensures doc blocks follow basic formatting.

Class

DocCommentSniff
Ensures doc blocks follow basic formatting.

Namespace

Drupal\Sniffs\Commenting

Code

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