Total Complexity | 4 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 100% |
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 | 2 | public function __construct($spacer, $parser) |
|
36 | { |
||
37 | 2 | $this->spacer = $spacer === null |
|
38 | 1 | ? null |
|
39 | 1 | : self::getArgument($spacer); |
|
40 | 2 | $this->parser = self::getArgument($parser); |
|
41 | 2 | } |
|
42 | |||
43 | 23 | protected function parse(&$input, $offset, Context $context) |
|
50 | } |
||
51 | |||
52 | 23 | public function __toString() |
|
55 | } |
||
56 | |||
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.