public function CommentEmptyLineSniff::register in Coder 8.3
Same name and namespace in other branches
- 8.2 coder_sniffer/DrupalPractice/Sniffs/Commenting/CommentEmptyLineSniff.php \DrupalPractice\Sniffs\Commenting\CommentEmptyLineSniff::register()
- 8.3.x coder_sniffer/DrupalPractice/Sniffs/Commenting/CommentEmptyLineSniff.php \DrupalPractice\Sniffs\Commenting\CommentEmptyLineSniff::register()
Returns an array of tokens this test wants to listen for.
Return value
array<int|string>
File
- coder_sniffer/
DrupalPractice/ Sniffs/ Commenting/ CommentEmptyLineSniff.php, line 32
Class
- CommentEmptyLineSniff
- Throws a warning if there is a blank line after an inline comment.
Namespace
DrupalPractice\Sniffs\CommentingCode
public function register() {
return [
T_COMMENT,
];
}