Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | 50 | public function boot(): void |
|
23 | { |
||
24 | 50 | $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'scout'); |
|
|
|||
25 | |||
26 | $this->app->make(EngineManager::class)->extend(ElasticSearchEngine::class, function () { |
||
27 | 18 | $elasticsearch = app(Client::class); |
|
28 | |||
29 | 18 | return new ElasticSearchEngine($elasticsearch); |
|
30 | 50 | }); |
|
31 | 50 | $this->registerCommands(); |
|
32 | 50 | } |
|
58 |
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.