@@ -323,9 +323,9 @@ discard block |
||
323 | 323 | try { |
324 | 324 | if (isset($this->config['read_from_cdn']) && $this->config['read_from_cdn']) { |
325 | 325 | $response = $this->getHttpClient() |
326 | - ->get($this->getTemporaryUrl($path, Carbon::now()->addMinutes(5))) |
|
327 | - ->getBody() |
|
328 | - ->getContents(); |
|
326 | + ->get($this->getTemporaryUrl($path, Carbon::now()->addMinutes(5))) |
|
327 | + ->getBody() |
|
328 | + ->getContents(); |
|
329 | 329 | } else { |
330 | 330 | $response = $this->client->getObject([ |
331 | 331 | 'Bucket' => $this->getBucket(), |
@@ -364,9 +364,9 @@ discard block |
||
364 | 364 | $temporaryUrl = $this->getTemporaryUrl($path, Carbon::now()->addMinutes(5)); |
365 | 365 | |
366 | 366 | $stream = $this->getHttpClient() |
367 | - ->get($temporaryUrl, ['stream' => true]) |
|
368 | - ->getBody() |
|
369 | - ->detach(); |
|
367 | + ->get($temporaryUrl, ['stream' => true]) |
|
368 | + ->getBody() |
|
369 | + ->detach(); |
|
370 | 370 | |
371 | 371 | return ['stream' => $stream]; |
372 | 372 | } catch (NoSuchKeyException $e) { |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | return true; |
252 | 252 | } |
253 | 253 | |
254 | - $keys = array_map(function ($item) { |
|
254 | + $keys = array_map(function($item) { |
|
255 | 255 | return ['Key' => $item['Key']]; |
256 | 256 | }, (array) $response['Contents']); |
257 | 257 | |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | ])->get('Body'); |
334 | 334 | } |
335 | 335 | |
336 | - return ['contents' => (string)$response]; |
|
336 | + return ['contents' => (string) $response]; |
|
337 | 337 | } catch (NoSuchKeyException $e) { |
338 | 338 | return false; |
339 | 339 | } catch (\GuzzleHttp\Exception\ClientException $e) { |