You are here

public function ClassCommentSniff::register in Coder 8.3

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

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

Return value

array<int|string>

File

coder_sniffer/Drupal/Sniffs/Commenting/ClassCommentSniff.php, line 37

Class

ClassCommentSniff
Checks that comment doc blocks exist on classes, interfaces and traits. Largely copied from PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\ClassCommentSniff.

Namespace

Drupal\Sniffs\Commenting

Code

public function register() {
  return [
    T_CLASS,
    T_INTERFACE,
    T_TRAIT,
  ];
}