public function DocCommentAlignmentSniff::register in Coder 8.3.x
Same name and namespace in other branches
- 8.3 coder_sniffer/Drupal/Sniffs/Commenting/DocCommentAlignmentSniff.php \Drupal\Sniffs\Commenting\DocCommentAlignmentSniff::register()
- 8.2 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<int|string>
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\CommentingCode
public function register() {
return [
T_DOC_COMMENT_OPEN_TAG,
];
}