| Conditions | 3 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 71 | protected function call($method, $id) |
||
| 72 | { |
||
| 73 | if (!$this->container) { |
||
| 74 | throw new ContainerException('Container not injected'); |
||
| 75 | } |
||
| 76 | if (\method_exists($this->container, $method)) { |
||
| 77 | return $this->container->$method($id); |
||
| 78 | } |
||
| 79 | throw new ContainerException('Container method not found: ' . $method); |
||
| 80 | } |
||
| 82 |
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.