@@ -123,7 +123,7 @@ |
||
| 123 | 123 | 'body' => $response->getBody() |
| 124 | 124 | ->detach(), |
| 125 | 125 | 'transfer_stats' => ['total_time' => 0], |
| 126 | - 'effective_url' => (string)$psr7Request->getUri(), |
|
| 126 | + 'effective_url' => (string) $psr7Request->getUri(), |
|
| 127 | 127 | ]); |
| 128 | 128 | }); |
| 129 | 129 | } |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | * |
| 35 | 35 | * @param array $config |
| 36 | 36 | * |
| 37 | - * @return \Elasticsearch\Client|mixed |
|
| 37 | + * @return Client |
|
| 38 | 38 | */ |
| 39 | 39 | public function make(array $config) |
| 40 | 40 | { |
@@ -3,9 +3,9 @@ |
||
| 3 | 3 | use Elasticsearch\Client; |
| 4 | 4 | use Elasticsearch\ClientBuilder; |
| 5 | 5 | use Illuminate\Support\Arr; |
| 6 | -use Psr\Log\LoggerInterface; |
|
| 7 | -use Monolog\Logger; |
|
| 8 | 6 | use Monolog\Handler\StreamHandler; |
| 7 | +use Monolog\Logger; |
|
| 8 | +use Psr\Log\LoggerInterface; |
|
| 9 | 9 | |
| 10 | 10 | class Factory |
| 11 | 11 | { |
@@ -112,9 +112,9 @@ discard block |
||
| 112 | 112 | |
| 113 | 113 | // Create the Credentials instance with the credentials from the environment |
| 114 | 114 | $credentials = new \Aws\Credentials\Credentials( |
| 115 | - $host['aws_key'], |
|
| 116 | - $host['aws_secret'], |
|
| 117 | - env('AWS_SESSION_TOKEN') ?? null |
|
| 115 | + $host['aws_key'], |
|
| 116 | + $host['aws_secret'], |
|
| 117 | + env('AWS_SESSION_TOKEN') ?? null |
|
| 118 | 118 | ); |
| 119 | 119 | // check if the aws_credentials from config is set and if it contains a Credentials instance |
| 120 | 120 | if (!empty($host['aws_credentials']) && $host['aws_credentials'] instanceof \Aws\Credentials\Credentials) { |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | 'status' => $response->getStatusCode(), |
| 149 | 149 | 'headers' => $response->getHeaders(), |
| 150 | 150 | 'body' => $response->getBody() |
| 151 | - ->detach(), |
|
| 151 | + ->detach(), |
|
| 152 | 152 | 'transfer_stats' => ['total_time' => 0], |
| 153 | 153 | 'effective_url' => (string)$psr7Request->getUri(), |
| 154 | 154 | ]); |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | use Elasticsearch\Client; |
| 4 | 4 | use Illuminate\Container\Container; |
| 5 | 5 | use Illuminate\Foundation\Application as LaravelApplication; |
| 6 | -use Illuminate\Foundation\Application; |
|
| 7 | 6 | use Illuminate\Support\ServiceProvider as BaseServiceProvider; |
| 8 | 7 | use Laravel\Lumen\Application as LumenApplication; |
| 9 | 8 | |