| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 7 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | final class ScoutElasticSearchServiceProvider extends ServiceProvider |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * {@inheritdoc} |
||
| 21 | */ |
||
| 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 | } |
|
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritdoc} |
||
| 36 | */ |
||
| 37 | 50 | public function register(): void |
|
| 38 | { |
||
| 39 | 50 | $this->app->register(ScoutServiceProvider::class); |
|
| 40 | 50 | $this->app->bind(ImportSourceFactory::class, DefaultImportSourceFactory::class); |
|
| 41 | 50 | } |
|
| 42 | |||
| 43 | /** |
||
| 44 | * Register artisan commands. |
||
| 45 | * |
||
| 46 | * @return void |
||
| 47 | */ |
||
| 48 | 50 | private function registerCommands(): void |
|
| 54 | ]); |
||
| 55 | } |
||
| 56 | 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.