Passed
Push — master ( 6a0aa5...e2096a )
by frey
02:50 queued 32s
created
src/Kernel/Support/Helpers.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
  */
13 13
 function generate_sign(array $headers, $secretKey)
14 14
 {
15
-    $headers = array_map(function ($key, $value) {
16
-        return strtolower($key) . ': ' . $value;
15
+    $headers = array_map(function($key, $value) {
16
+        return strtolower($key).': '.$value;
17 17
     }, array_keys($headers), $headers);
18 18
 
19 19
     $sourceString = implode("\n", $headers);
Please login to merge, or discard this patch.
src/API/ServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function register(Container $app)
14 14
     {
15
-        $app['api'] = function ($app) {
15
+        $app['api'] = function($app) {
16 16
             return new Client($app);
17 17
         };
18 18
     }
Please login to merge, or discard this patch.
src/UsagePlan/ServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function register(Container $app)
14 14
     {
15
-        $app['usage_plan'] = function ($app) {
15
+        $app['usage_plan'] = function($app) {
16 16
             return new Client($app);
17 17
         };
18 18
     }
Please login to merge, or discard this patch.
src/Service/ServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function register(Container $app)
14 14
     {
15
-        $app['service'] = function ($app) {
15
+        $app['service'] = function($app) {
16 16
             return new Client($app);
17 17
         };
18 18
     }
Please login to merge, or discard this patch.
src/Kernel/BaseClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
         if ($this->app->withFingerprint()) {
187 187
             $headers['Fingerprint'] = $this->fingerprint(
188 188
                 $method,
189
-                $this->baseUri . $url,
189
+                $this->baseUri.$url,
190 190
                 ($options['json'] ?? []) + ($options['form_params'] ?? []) + ($options['query'] ?? [])
191 191
             );
192 192
         }
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
      */
235 235
     protected function jaegerMiddleware()
236 236
     {
237
-        return Middleware::mapRequest(function (RequestInterface $request) {
237
+        return Middleware::mapRequest(function(RequestInterface $request) {
238 238
 
239 239
             if ($headers = $this->app['config']->get('jaeger.headers', [])) {
240 240
 
Please login to merge, or discard this patch.
src/FingerprintMiddleware.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,9 +46,9 @@
 block discarded – undo
46 46
         $authorization = preg_replace('/^hmac/i', '', $authorization);
47 47
         $params = array_map('trim', explode(',', $authorization));
48 48
 
49
-        $params = array_map(function ($item) {
49
+        $params = array_map(function($item) {
50 50
             parse_str($item, $parsed);
51
-            return array_map(function ($value) {
51
+            return array_map(function($value) {
52 52
                 return trim($value, '"\'');
53 53
             }, $parsed);
54 54
         }, $params);
Please login to merge, or discard this patch.
src/Kernel/Traits/WithFingerprint.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,11 +37,11 @@
 block discarded – undo
37 37
 
38 38
         foreach ($input as $key => $value) {
39 39
 
40
-            $key = $keyPrefix ? $keyPrefix . '.' . $key : $key;
40
+            $key = $keyPrefix ? $keyPrefix.'.'.$key : $key;
41 41
 
42 42
             $resource[] = is_array($value)
43 43
                 ? $this->canonicalize($value, $key)
44
-                : $key . '=' . $value;
44
+                : $key.'='.$value;
45 45
         }
46 46
 
47 47
         return implode('&', $resource);
Please login to merge, or discard this patch.
src/Kernel/TencentCloudClient.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         $query = array_merge($this->getCommonParameters(), $query);
41 41
 
42 42
         $query['Signature'] = $this->signature(
43
-            'GET', $this->baseUri . $url, $query
43
+            'GET', $this->baseUri.$url, $query
44 44
         );
45 45
 
46 46
         return $this->request($url, 'GET', ['query' => $query]);
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         $data = array_merge($this->getCommonParameters(), $data);
61 61
 
62 62
         $data['Signature'] = $this->signature(
63
-            'POST', $this->baseUri . $url, $data
63
+            'POST', $this->baseUri.$url, $data
64 64
         );
65 65
 
66 66
         return $this->request($url, 'POST', ['form_params' => $data]);
@@ -114,11 +114,11 @@  discard block
 block discarded – undo
114 114
 
115 115
         foreach ($input as $key => $value) {
116 116
 
117
-            $key = $keyPrefix ? $keyPrefix . '.' . $key : $key;
117
+            $key = $keyPrefix ? $keyPrefix.'.'.$key : $key;
118 118
 
119 119
             $resource[] = is_array($value)
120 120
                 ? $this->canonicalize($value, $key)
121
-                : $key . '=' . $value;
121
+                : $key.'='.$value;
122 122
         }
123 123
 
124 124
         return implode('&', $resource);
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 
137 137
         foreach ($input as $key => $value) {
138 138
 
139
-            $key = $keyPrefix ? $keyPrefix . '.' . $key : $key;
139
+            $key = $keyPrefix ? $keyPrefix.'.'.$key : $key;
140 140
 
141 141
             $resource = array_merge($resource, is_array($value)
142 142
                 ? $this->canonicalizeParameters($value, $key)
Please login to merge, or discard this patch.