Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | protected function parse(&$input, $offset, Context $context) |
||
33 | { |
||
34 | $length = PHP_INT_MAX; |
||
35 | foreach ($this->parsers as $parser) { |
||
36 | $match = $parser->parse($input, $offset, $context); |
||
37 | $length = min($length, $match->length); |
||
38 | if (!$match->match) { |
||
39 | return $this->failure($input, $offset, $length); |
||
40 | } |
||
41 | } |
||
42 | return $this->success($input, $offset, $length); |
||
43 | } |
||
51 |