Total Complexity | 3 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | class Any extends Parser |
||
14 | { |
||
15 | 5 | protected function parse(&$input, $offset, Context $context) |
|
16 | { |
||
17 | 5 | if ($offset < mb_strlen($input)) { |
|
18 | 3 | return $this->success($input, $offset, 1); |
|
19 | } |
||
20 | |||
21 | 2 | return $this->failure($input, $offset); |
|
22 | } |
||
23 | |||
24 | 5 | public function __toString() |
|
27 | } |
||
28 | } |
||
29 |