You are here

public function DocCommentAlignmentSniff::register in Coder 8.2

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

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

Return value

array

File

coder_sniffer/Drupal/Sniffs/Commenting/DocCommentAlignmentSniff.php, line 35

Class

DocCommentAlignmentSniff
Largely copied from \PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\DocCommentAlignmentSniff to also handle the "var" keyword. See https://github.com/squizlabs/PHP_CodeSniffer/pull/1212

Namespace

Drupal\Sniffs\Commenting

Code

public function register() {
  return array(
    T_DOC_COMMENT_OPEN_TAG,
  );
}