| Conditions | 5 |
| Paths | 5 |
| Total Lines | 20 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 5.1158 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | 1 | public function readLines(array &$lines) |
|
| 19 | { |
||
| 20 | 1 | if (empty($lines)) { |
|
| 21 | return; |
||
| 22 | } |
||
| 23 | |||
| 24 | 1 | foreach ($lines as $key => $line) { |
|
| 25 | 1 | if (0 === strpos($line, static::TAG_IDENTIFIER)) { |
|
| 26 | 1 | $this->read($line); |
|
| 27 | |||
| 28 | 1 | unset($lines[$key]); |
|
| 29 | |||
| 30 | 1 | return; |
|
| 31 | } |
||
| 32 | |||
| 33 | 1 | if (0 !== strpos($line, '#')) { |
|
| 34 | 1 | return; |
|
| 35 | } |
||
| 36 | 1 | } |
|
| 37 | } |
||
| 38 | |||
| 41 |