Total Complexity | 3 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
11 | class NodeAnchor extends NodeActions |
||
12 | { |
||
13 | 1 | public function build(&$parent = null) |
|
14 | { |
||
15 | 1 | $name = substr($this->anchor, 1); |
|
16 | 1 | $yamlObject = $this->getRoot()->getYamlObject(); |
|
|
|||
17 | 1 | if ($this->anchor[0] === "*") { |
|
18 | 1 | return $yamlObject->getReference($name); |
|
19 | } else { |
||
20 | 1 | $built = $this->value->build($parent); |
|
21 | 1 | $yamlObject->addReference($name, $built); |
|
22 | 1 | return $built; |
|
23 | } |
||
24 | } |
||
25 | |||
26 | 1 | public function isAwaitingChild(Node $node):bool |
|
29 | } |
||
30 | } |
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.