Conditions | 4 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
38 | 103 | public function offsetExists($offset) |
|
39 | { |
||
40 | 103 | $exists = parent::offsetExists($offset); |
|
41 | 103 | while (!$exists && !$this->allParsed) { |
|
42 | 103 | $child = $this->parserProxy->popNextChild(); |
|
43 | 103 | if ($child === null) { |
|
44 | 98 | $this->allParsed = true; |
|
45 | } else { |
||
46 | 74 | $this->add($child); |
|
47 | } |
||
48 | 103 | $exists = parent::offsetExists($offset); |
|
49 | } |
||
50 | 103 | return $exists; |
|
51 | } |
||
53 |