File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -121,13 +121,14 @@ public static function getLinesToBeIgnored($filename, $cacheTokens = TRUE)
121121 self ::$ ignoredLines [$ filename ][$ i ] = TRUE ;
122122 }
123123
124- // Workaround for the fact the DOC_COMMENT token does
125- // not include the final \n character in its text.
126- if (substr (trim ($ lines [$ i -1 ]), -2 ) == '*/ ' ) {
127- self ::$ ignoredLines [$ filename ][$ i ] = TRUE ;
128- }
124+ if ($ token instanceof PHP_Token_DOC_COMMENT) {
125+ // Workaround for the fact the DOC_COMMENT token
126+ // does not include the final \n character in its
127+ // text.
128+ if (substr (trim ($ lines [$ i -1 ]), -2 ) == '*/ ' ) {
129+ self ::$ ignoredLines [$ filename ][$ i ] = TRUE ;
130+ }
129131
130- if (!$ token instanceof PHP_Token_COMMENT) {
131132 break ;
132133 }
133134
You can’t perform that action at this time.
0 commit comments