Completed
Push — master ( cf55ae...b8eb44 )
by Carlos
01:25
created
src/Providers/Alipay.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         $response = json_decode($response->getBody()->getContents(), true);
54 54
 
55 55
         if (!empty($response['error_response']) || empty($response['alipay_user_info_share_response'])) {
56
-            throw new \InvalidArgumentException('You have error! ' . \json_encode($response, JSON_UNESCAPED_UNICODE));
56
+            throw new \InvalidArgumentException('You have error! '.\json_encode($response, JSON_UNESCAPED_UNICODE));
57 57
         }
58 58
 
59 59
         return $response['alipay_user_info_share_response'];
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         $response = json_decode($response->getBody()->getContents(), true);
97 97
 
98 98
         if (!empty($response['error_response'])) {
99
-            throw new \InvalidArgumentException('You have error! ' . json_encode($response, JSON_UNESCAPED_UNICODE));
99
+            throw new \InvalidArgumentException('You have error! '.json_encode($response, JSON_UNESCAPED_UNICODE));
100 100
         }
101 101
 
102 102
         return $this->normalizeAccessTokenResponse($response['alipay_system_oauth_token_response']);
@@ -188,8 +188,8 @@  discard block
 block discarded – undo
188 188
             throw new InvalidArgumentException('no RSA private key set.');
189 189
         }
190 190
 
191
-        $key = "-----BEGIN RSA PRIVATE KEY-----\n" .
192
-            chunk_split($key, 64, "\n") .
191
+        $key = "-----BEGIN RSA PRIVATE KEY-----\n".
192
+            chunk_split($key, 64, "\n").
193 193
             "-----END RSA PRIVATE KEY-----";
194 194
 
195 195
         openssl_sign($signContent, $signValue, $key, OPENSSL_ALGO_SHA256);
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
             if (in_array($k, $except)) {
212 212
                 continue;
213 213
             }
214
-            $param_str .= $k . '=';
214
+            $param_str .= $k.'=';
215 215
             $param_str .= $urlencode ? rawurlencode($v) : $v;
216 216
             $param_str .= '&';
217 217
         }
Please login to merge, or discard this patch.
src/Providers/QCloud.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@
 block discarded – undo
188 188
         }
189 189
 
190 190
         if (empty($body['UserOpenId'])) {
191
-            throw new AuthorizeFailedException('Authorize Failed: ' . json_encode($body, JSON_UNESCAPED_UNICODE), $body);
191
+            throw new AuthorizeFailedException('Authorize Failed: '.json_encode($body, JSON_UNESCAPED_UNICODE), $body);
192 192
         }
193 193
 
194 194
         $this->openId = $body['UserOpenId'] ?? null;
Please login to merge, or discard this patch.