Completed
Push — master ( 99df42...02a295 )
by frey
03:28
created
src/Adapter.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -323,9 +323,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
             return true;
264 264
         }
265 265
 
266
-        $keys = array_map(function ($item) {
266
+        $keys = array_map(function($item) {
267 267
             return ['Key' => $item['Key']];
268 268
         }, (array) $response['Contents']);
269 269
 
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
                 ])->/** @scrutinizer ignore-call */ get('Body');
338 338
             }
339 339
 
340
-            return ['contents' => (string)$response];
340
+            return ['contents' => (string) $response];
341 341
         } catch (NoSuchKeyException $e) {
342 342
             return false;
343 343
         } catch (\GuzzleHttp\Exception\ClientException $e) {
Please login to merge, or discard this patch.
src/ServiceProvider.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -29,18 +29,18 @@
 block discarded – undo
29 29
         }
30 30
 
31 31
         $this->app->make('filesystem')
32
-                  ->extend('cosv5', function ($app, $config) {
33
-                      $client = new Client($config);
34
-                      $flysystem = new Filesystem(new Adapter($client, $config), $config);
32
+                    ->extend('cosv5', function ($app, $config) {
33
+                        $client = new Client($config);
34
+                        $flysystem = new Filesystem(new Adapter($client, $config), $config);
35 35
 
36
-                      $flysystem->addPlugin(new PutRemoteFile());
37
-                      $flysystem->addPlugin(new PutRemoteFileAs());
38
-                      $flysystem->addPlugin(new GetUrl());
39
-                      $flysystem->addPlugin(new CDN());
40
-                      $flysystem->addPlugin(new TCaptcha());
36
+                        $flysystem->addPlugin(new PutRemoteFile());
37
+                        $flysystem->addPlugin(new PutRemoteFileAs());
38
+                        $flysystem->addPlugin(new GetUrl());
39
+                        $flysystem->addPlugin(new CDN());
40
+                        $flysystem->addPlugin(new TCaptcha());
41 41
 
42
-                      return $flysystem;
43
-                  });
42
+                        return $flysystem;
43
+                    });
44 44
     }
45 45
 
46 46
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         }
30 30
 
31 31
         $this->app->make('filesystem')
32
-                  ->extend('cosv5', function ($app, $config) {
32
+                  ->extend('cosv5', function($app, $config) {
33 33
                       $client = new Client($config);
34 34
                       $flysystem = new Filesystem(new Adapter($client, $config), $config);
35 35
 
Please login to merge, or discard this patch.
src/Plugins/CDN.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
      */
89 89
     protected function buildFormParams(array $values, $key, $action)
90 90
     {
91
-        $keys = array_map(function ($n) use ($key) {
91
+        $keys = array_map(function($n) use ($key) {
92 92
             return sprintf("$key.%d", $n);
93 93
         }, range(0, count($values) - 1));
94 94
 
Please login to merge, or discard this patch.