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