Total Complexity | 4 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
14 | class Space extends Parser |
||
15 | { |
||
16 | use ArgumentsTrait; |
||
17 | |||
18 | /** |
||
19 | * @var null|Parser |
||
20 | */ |
||
21 | private $spacer; |
||
22 | |||
23 | /** |
||
24 | * @var null|Parser |
||
25 | */ |
||
26 | private $parser; |
||
27 | |||
28 | /** |
||
29 | * Set (or disable) a spacer for the parser. |
||
30 | * |
||
31 | * @param Parser|string|int|bool|null $spacer |
||
32 | * @param Parser|string|int $parser |
||
33 | */ |
||
34 | 2 | public function __construct($spacer, $parser) |
|
40 | 2 | } |
|
41 | |||
42 | 23 | protected function parse(&$input, $offset, Context $context) |
|
49 | } |
||
50 | |||
51 | 23 | public function __toString() |
|
56 |
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.