| @@ 252-256 (lines=5) @@ | ||
| 249 | $comment = $matches[4]; |
|
| 250 | ||
| 251 | // Any strings until the next tag belong to this comment. |
|
| 252 | if (isset($tokens[$commentStart]['comment_tags'][($pos + 1)]) === true) { |
|
| 253 | $end = $tokens[$commentStart]['comment_tags'][($pos + 1)]; |
|
| 254 | } else { |
|
| 255 | $end = $tokens[$commentStart]['comment_closer']; |
|
| 256 | } |
|
| 257 | ||
| 258 | for ($i = ($tag + 3); $i < $end; $i++) { |
|
| 259 | if ($tokens[$i]['code'] === T_DOC_COMMENT_STRING) { |
|
| @@ 206-210 (lines=5) @@ | ||
| 203 | $phpcsFile->addError($error, $tag, 'EmptyThrows'); |
|
| 204 | } else { |
|
| 205 | // Any strings until the next tag belong to this comment. |
|
| 206 | if (isset($tokens[$commentStart]['comment_tags'][($pos + 1)]) === true) { |
|
| 207 | $end = $tokens[$commentStart]['comment_tags'][($pos + 1)]; |
|
| 208 | } else { |
|
| 209 | $end = $tokens[$commentStart]['comment_closer']; |
|
| 210 | } |
|
| 211 | ||
| 212 | for ($i = ($tag + 3); $i < $end; $i++) { |
|
| 213 | if ($tokens[$i]['code'] === T_DOC_COMMENT_STRING) { |
|
| @@ 302-306 (lines=5) @@ | ||
| 299 | ); |
|
| 300 | ||
| 301 | // Any strings until the next tag belong to this comment. |
|
| 302 | if (isset($tokens[$commentStart]['comment_tags'][($pos + 1)]) === true) { |
|
| 303 | $end = $tokens[$commentStart]['comment_tags'][($pos + 1)]; |
|
| 304 | } else { |
|
| 305 | $end = $tokens[$commentStart]['comment_closer']; |
|
| 306 | } |
|
| 307 | ||
| 308 | for ($i = ($tag + 3); $i < $end; $i++) { |
|
| 309 | if ($tokens[$i]['code'] === T_DOC_COMMENT_STRING) { |
|