| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | protected function registerServices() |
||
| 44 | { |
||
| 45 | $this->app->singleton(Contracts\RepositoryInterface::class, function ($app) { |
||
| 46 | $path = $app['config']->get('domains.paths.domains'); |
||
| 47 | |||
| 48 | return new Lumen\LumenFileRepository($app, $path); |
||
| 49 | }); |
||
| 50 | $this->app->singleton(Contracts\ActivatorInterface::class, function ($app) { |
||
| 51 | $activator = $app['config']->get('domains.activator'); |
||
| 52 | $class = $app['config']->get('domains.activators.' . $activator)['class']; |
||
| 53 | |||
| 54 | return new $class($app); |
||
| 55 | }); |
||
| 56 | $this->app->alias(Contracts\RepositoryInterface::class, 'domains'); |
||
| 57 | } |
||
| 59 |
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.