Conditions | 4 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | protected function parse(&$input, $offset, Context $context) |
||
32 | { |
||
33 | $this->pushCaseSensitivityToContext($context); |
||
34 | |||
35 | $text = $context->handleCase($this->text); |
||
36 | for ($c = 0; $c < $this->length; $c++) { |
||
37 | if ($offset + $c >= mb_strlen($input) || $text[$c] != $context->handleCase($input[$offset + $c])) { |
||
38 | $this->popCaseSensitivityFromContext($context); |
||
39 | |||
40 | return $this->failure($input, $offset, $c); |
||
41 | } |
||
42 | } |
||
43 | |||
44 | $this->popCaseSensitivityFromContext($context); |
||
45 | |||
46 | return $this->success($input, $offset, $this->length); |
||
47 | } |
||
55 |