Total Complexity | 4 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 92.31% |
Changes | 0 |
1 | <?php |
||
14 | class Space extends Parser |
||
15 | { |
||
16 | |||
17 | use ArgumentsTrait; |
||
18 | |||
19 | /** |
||
20 | * @var null|Parser |
||
21 | */ |
||
22 | private $spacer = null; |
||
23 | |||
24 | /** |
||
25 | * @var null|Parser |
||
26 | */ |
||
27 | private $parser = null; |
||
28 | |||
29 | /** |
||
30 | * Set (or disable) a spacer for the parser |
||
31 | * |
||
32 | * @param Parser|string|int|bool|null $spacer |
||
33 | * @param Parser|string|int $parser |
||
34 | */ |
||
35 | 1 | public function __construct($spacer, $parser) |
|
41 | 1 | } |
|
42 | |||
43 | 22 | protected function parse(&$input, $offset, Context $context) |
|
50 | } |
||
51 | |||
52 | 22 | public function __toString() |
|
58 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.