@@ -688,8 +688,8 @@ protected function getLinesToBeIgnored($filename)
688688 $ stop = TRUE ;
689689 }
690690
691- // be sure the comment doesn't have some token BEFORE it on the same line...
692- // it would not be safe to ignore the whole line in those cases.
691+ // Do not ignore the whole line when there is a token
692+ // before the comment on the same line
693693 if (0 === strpos ($ _token , $ _line )) {
694694 $ count = substr_count ($ token , "\n" );
695695 $ line = $ token ->getLine ();
@@ -699,9 +699,8 @@ protected function getLinesToBeIgnored($filename)
699699 }
700700
701701 if ($ token instanceof PHP_Token_DOC_COMMENT) {
702- // Workaround for the fact the DOC_COMMENT token
703- // does not include the final \n character in its
704- // text.
702+ // The DOC_COMMENT token does not contain the
703+ // final \n character in its text
705704 if (substr (trim ($ lines [$ i -1 ]), -2 ) == '*/ ' ) {
706705 $ this ->ignoredLines [$ filename ][] = $ i ;
707706 }
@@ -768,7 +767,9 @@ protected function getLinesToBeIgnored($filename)
768767
769768 case 'PHP_Token_NAMESPACE ' : {
770769 $ this ->ignoredLines [$ filename ][] = $ token ->getEndLine ();
771- } // Intentional fallthrough
770+ }
771+
772+ // Intentional fallthrough
772773 case 'PHP_Token_OPEN_TAG ' :
773774 case 'PHP_Token_CLOSE_TAG ' :
774775 case 'PHP_Token_USE ' : {
0 commit comments