You are here

public function CommentEmptyLineSniff::register in Coder 8.2

Same name and namespace in other branches
  1. 8.3 coder_sniffer/DrupalPractice/Sniffs/Commenting/CommentEmptyLineSniff.php \DrupalPractice\Sniffs\Commenting\CommentEmptyLineSniff::register()
  2. 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

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\Commenting

Code

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