| Conditions | 5 |
| Paths | 12 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 5.2742 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 37 | 4 | public function finalize(): void |
|
| 38 | { |
||
| 39 | 4 | $type = $this->config->getMutationType(); |
|
| 40 | |||
| 41 | 4 | $mutation = null !== $type && $this->typeRegistry->has($type) |
|
| 42 | 4 | ? $this->typeRegistry->get($type) |
|
| 43 | : null; |
||
| 44 | |||
| 45 | 4 | if (! $mutation instanceof DynamicObjectTypeInterface) { |
|
| 46 | return; |
||
| 47 | } |
||
| 48 | |||
| 49 | 4 | foreach ($this->classes as $class) { |
|
| 50 | 1 | $mutation->addAdditionalField($this->container->get($class)); |
|
| 51 | } |
||
| 54 |
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.