| Conditions | 3 |
| Paths | 4 |
| Total Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 55 | private function removeTrailing($lines, $index): array |
||
| 56 | { |
||
| 57 | $line = ''; |
||
| 58 | $remove = []; |
||
| 59 | |||
| 60 | while(! $this->endOfMethod($line)) { |
||
| 61 | $line = $lines[$index]; |
||
| 62 | |||
| 63 | $remove[] = $index; |
||
| 64 | |||
| 65 | $index++; |
||
| 66 | } |
||
| 67 | |||
| 68 | if (trim($lines[$index]) === '') { |
||
| 69 | $remove[] = $index; |
||
| 70 | } |
||
| 71 | |||
| 72 | return $remove; |
||
| 73 | } |
||
| 74 | |||
| 97 |