@@ -59,27 +59,27 @@ |
||
| 59 | 59 | */ |
| 60 | 60 | public function register() |
| 61 | 61 | { |
| 62 | - $this->app->singleton(ElasticsearchClientContract::class, function () { |
|
| 62 | + $this->app->singleton(ElasticsearchClientContract::class, function() { |
|
| 63 | 63 | return app()->make(ElasticsearchClient::class); |
| 64 | 64 | }); |
| 65 | 65 | |
| 66 | - $this->app->singleton(ElasticsearchIndexContract::class, function () { |
|
| 66 | + $this->app->singleton(ElasticsearchIndexContract::class, function() { |
|
| 67 | 67 | return app()->make(ElasticsearchIndex::class); |
| 68 | 68 | }); |
| 69 | 69 | |
| 70 | - $this->app->singleton(ElasticsearchAliasContract::class, function () { |
|
| 70 | + $this->app->singleton(ElasticsearchAliasContract::class, function() { |
|
| 71 | 71 | return app()->make(ElasticsearchAlias::class); |
| 72 | 72 | }); |
| 73 | 73 | |
| 74 | - $this->app->singleton(ElasticsearchDocumentContract::class, function () { |
|
| 74 | + $this->app->singleton(ElasticsearchDocumentContract::class, function() { |
|
| 75 | 75 | return app()->make(ElasticsearchDocument::class); |
| 76 | 76 | }); |
| 77 | 77 | |
| 78 | - $this->app->singleton(ElasticsearchSearchContract::class, function () { |
|
| 78 | + $this->app->singleton(ElasticsearchSearchContract::class, function() { |
|
| 79 | 79 | return app()->make(ElasticsearchSearch::class); |
| 80 | 80 | }); |
| 81 | 81 | |
| 82 | - $this->app->singleton(ElasticsearchMappingContract::class, function () { |
|
| 82 | + $this->app->singleton(ElasticsearchMappingContract::class, function() { |
|
| 83 | 83 | return app()->make(ElasticsearchMapping::class); |
| 84 | 84 | }); |
| 85 | 85 | } |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | $version = $this->getDeployVersions(); |
| 39 | 39 | |
| 40 | 40 | $index = $this->argument('index'); |
| 41 | - $migrateData = (bool)$this->argument('migrate_data'); |
|
| 41 | + $migrateData = (bool) $this->argument('migrate_data'); |
|
| 42 | 42 | |
| 43 | 43 | if (array_key_exists($index, $version['indices'])) { |
| 44 | 44 | $from_version = $version['indices'][$index]['from']; |
@@ -289,7 +289,7 @@ |
||
| 289 | 289 | $params['type'] = $type; |
| 290 | 290 | $params['id'] = $id; |
| 291 | 291 | |
| 292 | - $result = (bool)$this->client->exists($params); |
|
| 292 | + $result = (bool) $this->client->exists($params); |
|
| 293 | 293 | |
| 294 | 294 | return $result; |
| 295 | 295 | } |