@@ -41,7 +41,7 @@ |
||
| 41 | 41 | __DIR__ . '/config/elasticsearch.php' => config_path('elasticsearch.php'), |
| 42 | 42 | ]); |
| 43 | 43 | |
| 44 | - resolve(EngineManager::class)->extend('elasticsearch', function () { |
|
| 44 | + resolve(EngineManager::class)->extend('elasticsearch', function() { |
|
| 45 | 45 | return new ElasticSearchEngine( |
| 46 | 46 | ElasticSearchBuilder::create()->setHosts(config('elasticsearch.hosts'))->build(), |
| 47 | 47 | config('elasticsearch.index') |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | public function update($models) |
| 54 | 54 | { |
| 55 | 55 | $params = []; |
| 56 | - $models->each(function ($model) use (&$params) { |
|
| 56 | + $models->each(function($model) use (&$params) { |
|
| 57 | 57 | $params['body'][] = [ |
| 58 | 58 | 'index' => [ |
| 59 | 59 | '_index' => $this->index, |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | public function delete($models) |
| 77 | 77 | { |
| 78 | 78 | $params = []; |
| 79 | - $models->each(function ($model) use (&$params) { |
|
| 79 | + $models->each(function($model) use (&$params) { |
|
| 80 | 80 | $params['body'][] = [ |
| 81 | 81 | 'delete' => [ |
| 82 | 82 | '_index' => $this->index, |