| @@ 30-36 (lines=7) @@ | ||
| 27 | $newLines = []; |
|
| 28 | ||
| 29 | foreach ($commentLines as $commentLine) { |
|
| 30 | if (strpos($commentLine, '@') === 0) { |
|
| 31 | $newCommentLine = substr($commentLine, 1); |
|
| 32 | $annotationName = strtok($newCommentLine, " \t(\n"); |
|
| 33 | if ($annotationName === $annotation) { |
|
| 34 | continue; |
|
| 35 | } |
|
| 36 | } |
|
| 37 | $newLines[] = $commentLine; |
|
| 38 | } |
|
| 39 | $this->comment = implode("\n", $newLines); |
|
| @@ 49-55 (lines=7) @@ | ||
| 46 | $commentLines = explode("\n", $this->comment); |
|
| 47 | ||
| 48 | foreach ($commentLines as $commentLine) { |
|
| 49 | if (strpos($commentLine, '@') === 0) { |
|
| 50 | $newCommentLine = substr($commentLine, 1); |
|
| 51 | $annotationName = strtok($newCommentLine, " \t(\n"); |
|
| 52 | if ($annotationName === $annotation) { |
|
| 53 | return true; |
|
| 54 | } |
|
| 55 | } |
|
| 56 | } |
|
| 57 | return false; |
|
| 58 | } |
|