public function PostStatementCommentSniff::register in Coder 8.2
Same name and namespace in other branches
- 8.3 coder_sniffer/Drupal/Sniffs/Commenting/PostStatementCommentSniff.php \Drupal\Sniffs\Commenting\PostStatementCommentSniff::register()
- 8.3.x coder_sniffer/Drupal/Sniffs/Commenting/PostStatementCommentSniff.php \Drupal\Sniffs\Commenting\PostStatementCommentSniff::register()
Returns an array of tokens this test wants to listen for.
Return value
array
File
- coder_sniffer/
Drupal/ Sniffs/ Commenting/ PostStatementCommentSniff.php, line 40
Class
- PostStatementCommentSniff
- Largely copied from \PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\PostStatementCommentSniff but we want the fixer to move the comment to the previous line.
Namespace
Drupal\Sniffs\CommentingCode
public function register() {
return array(
T_COMMENT,
);
}