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)
121
121
self ::$ ignoredLines [$ filename ][$ i ] = TRUE ;
122
122
}
123
123
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
+ }
129
131
130
- if (!$ token instanceof PHP_Token_COMMENT) {
131
132
break ;
132
133
}
133
134
You can’t perform that action at this time.
0 commit comments