Completed
Push — master ( b6eaf2...afc066 )
by frey
03:17
created
src/ServiceProvider.php 2 patches
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.
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -32,21 +32,21 @@
 block discarded – undo
32 32
         }
33 33
 
34 34
         $this->app->make('filesystem')
35
-                  ->extend('cosv5', function ($app, $config) {
36
-                      $client = new Client($config);
37
-                      $flysystem = new Filesystem(new Adapter($client, $config), $config);
35
+                    ->extend('cosv5', function ($app, $config) {
36
+                        $client = new Client($config);
37
+                        $flysystem = new Filesystem(new Adapter($client, $config), $config);
38 38
 
39
-                      $flysystem->addPlugin(new PutRemoteFile());
40
-                      $flysystem->addPlugin(new PutRemoteFileAs());
41
-                      $flysystem->addPlugin(new GetUrl());
42
-                      $flysystem->addPlugin(new CDN());
43
-                      $flysystem->addPlugin(new TCaptcha());
44
-                      $flysystem->addPlugin(new GetFederationToken());
45
-                      $flysystem->addPlugin(new GetFederationTokenV3());
46
-                      $flysystem->addPlugin(new CloudInfinite());
39
+                        $flysystem->addPlugin(new PutRemoteFile());
40
+                        $flysystem->addPlugin(new PutRemoteFileAs());
41
+                        $flysystem->addPlugin(new GetUrl());
42
+                        $flysystem->addPlugin(new CDN());
43
+                        $flysystem->addPlugin(new TCaptcha());
44
+                        $flysystem->addPlugin(new GetFederationToken());
45
+                        $flysystem->addPlugin(new GetFederationTokenV3());
46
+                        $flysystem->addPlugin(new CloudInfinite());
47 47
 
48
-                      return $flysystem;
49
-                  });
48
+                        return $flysystem;
49
+                    });
50 50
     }
51 51
 
52 52
     /**
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
@@ -131,7 +131,7 @@
 block discarded – undo
131 131
      */
132 132
     protected function buildFormParams(array $values, $key, $action)
133 133
     {
134
-        $keys = array_map(function ($n) use ($key) {
134
+        $keys = array_map(function($n) use ($key) {
135 135
             return sprintf("{$key}.%d", $n);
136 136
         }, range(0, count($values) - 1));
137 137
 
Please login to merge, or discard this patch.
src/Adapter.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -406,9 +406,9 @@
 block discarded – undo
406 406
             $temporaryUrl = $this->getTemporaryUrl($path, Carbon::now()->addMinutes(5));
407 407
 
408 408
             $stream = $this->getHttpClient()
409
-                           ->get($temporaryUrl, ['stream' => true])
410
-                           ->getBody()
411
-                           ->detach();
409
+                            ->get($temporaryUrl, ['stream' => true])
410
+                            ->getBody()
411
+                            ->detach();
412 412
 
413 413
             return ['stream' => $stream];
414 414
         } catch (NoSuchKeyException $e) {
Please login to merge, or discard this patch.
src/Plugins/Traits/TencentCloudAuthV3.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
             '%s Credential=%s/%s, SignedHeaders=%s, Signature=%s',
88 88
             'TC3-HMAC-SHA256',
89 89
             $this->getCredentials()['secretId'],
90
-            date('Y-m-d', $timestamp) . "/{$service}/tc3_request",
90
+            date('Y-m-d', $timestamp)."/{$service}/tc3_request",
91 91
             'content-type;host',
92 92
             hash_hmac(
93 93
                 'SHA256',
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         return hash_hmac('SHA256', 'tc3_request',
109 109
             hash_hmac('SHA256', $service,
110 110
                 hash_hmac('SHA256', date('Y-m-d', $timestamp),
111
-                    'TC3' . $this->getCredentials()['secretKey'], true
111
+                    'TC3'.$this->getCredentials()['secretKey'], true
112 112
                 ), true
113 113
             ), true
114 114
         );
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
         return implode("\n", [
149 149
             'TC3-HMAC-SHA256',
150 150
             $timestamp,
151
-            date('Y-m-d', $timestamp) . "/{$service}/tc3_request",
151
+            date('Y-m-d', $timestamp)."/{$service}/tc3_request",
152 152
             hash('SHA256', $this->getCanonicalRequest($args, $service)),
153 153
         ]);
154 154
     }
Please login to merge, or discard this patch.
src/Plugins/FaceId.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     public function detectAuth($ruleId, array $options = [])
37 37
     {
38 38
         $params = array_merge($options, [
39
-            'RuleId' => (string)$ruleId,
39
+            'RuleId' => (string) $ruleId,
40 40
         ]);
41 41
 
42 42
         return $this->request(
@@ -54,9 +54,9 @@  discard block
 block discarded – undo
54 54
     public function getDetectInfo($ruleId, $bizToken, $infoType = '0')
55 55
     {
56 56
         $params = [
57
-            'RuleId' => (string)$ruleId,
57
+            'RuleId' => (string) $ruleId,
58 58
             'BizToken' => $bizToken,
59
-            'InfoType' => (string)$infoType,
59
+            'InfoType' => (string) $infoType,
60 60
         ];
61 61
 
62 62
         return $this->request(
Please login to merge, or discard this patch.