@@ -182,7 +182,7 @@ |
||
182 | 182 | // Build and return the client |
183 | 183 | if($ES_api_id != '') |
184 | 184 | { |
185 | - return $clientBuilder->setApiKey($ES_api_id,$ES_api_key)->build(); |
|
185 | + return $clientBuilder->setApiKey($ES_api_id,$ES_api_key)->build(); |
|
186 | 186 | } |
187 | 187 | else { |
188 | 188 | return $clientBuilder->build(); |
@@ -176,13 +176,13 @@ |
||
176 | 176 | }); |
177 | 177 | } |
178 | 178 | } |
179 | - $ES_api_id=Arr::get($config, 'ES_api_id'); |
|
180 | - $ES_api_key=Arr::get($config, 'ES_api_key'); |
|
179 | + $ES_api_id = Arr::get($config, 'ES_api_id'); |
|
180 | + $ES_api_key = Arr::get($config, 'ES_api_key'); |
|
181 | 181 | |
182 | 182 | // Build and return the client |
183 | - if($ES_api_id != '') |
|
183 | + if ($ES_api_id != '') |
|
184 | 184 | { |
185 | - return $clientBuilder->setApiKey($ES_api_id,$ES_api_key)->build(); |
|
185 | + return $clientBuilder->setApiKey($ES_api_id, $ES_api_key)->build(); |
|
186 | 186 | } |
187 | 187 | else { |
188 | 188 | return $clientBuilder->build(); |
@@ -145,7 +145,8 @@ discard block |
||
145 | 145 | ); |
146 | 146 | |
147 | 147 | // Get curl stats |
148 | - $http_stats = new class { |
|
148 | + $http_stats = new class |
|
149 | + { |
|
149 | 150 | public $data = []; |
150 | 151 | public function __invoke(...$args) |
151 | 152 | { |
@@ -183,8 +184,7 @@ discard block |
||
183 | 184 | if($ES_api_id != '') |
184 | 185 | { |
185 | 186 | return $clientBuilder->setApiKey($ES_api_id,$ES_api_key)->build(); |
186 | - } |
|
187 | - else { |
|
187 | + } else { |
|
188 | 188 | return $clientBuilder->build(); |
189 | 189 | } |
190 | 190 | } |