| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | 50 | public function register(): void |
|
| 17 | { |
||
| 18 | 50 | $this->mergeConfigFrom(__DIR__.'/../config/elasticsearch.php', 'elasticsearch'); |
|
|
|
|||
| 19 | |||
| 20 | $this->app->bind(Client::class, function () { |
||
| 21 | 33 | return ClientBuilder::create()->setHosts([config('elasticsearch.host')])->build(); |
|
| 22 | 50 | }); |
|
| 23 | |||
| 24 | 50 | $this->app->bind( |
|
| 25 | 50 | 'Matchish\ScoutElasticSearch\ElasticSearch\HitsIteratorAggregate', |
|
| 26 | 50 | 'Matchish\ScoutElasticSearch\ElasticSearch\EloquentHitsIteratorAggregate' |
|
| 27 | ); |
||
| 48 |
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.