| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 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 | } |
||
| 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.