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