Completed
Push — master ( 44af72...2f7fae )
by Colin
15s
created
src/Factory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         // Configure handlers for any AWS hosts
99 99
         foreach ($config['hosts'] as $host) {
100 100
             if (isset($host['aws']) && $host['aws']) {
101
-                $clientBuilder->setHandler(function (array $request) use ($host) {
101
+                $clientBuilder->setHandler(function(array $request) use ($host) {
102 102
                     $psr7Handler = \Aws\default_http_handler();
103 103
                     $signer = new \Aws\Signature\SignatureV4('es', $host['aws_region']);
104 104
                     $request['headers']['Host'][0] = parse_url($request['headers']['Host'][0])['host'] ?? $request['headers']['Host'][0];
@@ -158,9 +158,9 @@  discard block
 block discarded – undo
158 158
 
159 159
                     // Send the signed request to Amazon ES
160 160
                     $response = $psr7Handler($signedRequest, ['http_stats_receiver' => $http_stats])
161
-                        ->then(function (ResponseInterface $response) {
161
+                        ->then(function(ResponseInterface $response) {
162 162
                             return $response;
163
-                        }, function ($error) {
163
+                        }, function($error) {
164 164
                             return $error['response'];
165 165
                         })
166 166
                         ->wait();
Please login to merge, or discard this patch.