Passed
Pull Request — master (#633)
by Songda
07:35
created
src/Functions.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
             return file_get_contents($key);
57 57
         }
58 58
 
59
-        return "-----BEGIN RSA PRIVATE KEY-----\n".
60
-            wordwrap($key, 64, "\n", true).
59
+        return "-----BEGIN RSA PRIVATE KEY-----\n" .
60
+            wordwrap($key, 64, "\n", true) .
61 61
             "\n-----END RSA PRIVATE KEY-----";
62 62
     }
63 63
 }
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
             get_wechat_sign($params, $contents),
150 150
         );
151 151
 
152
-        return 'WECHATPAY2-SHA256-RSA2048 '.$auth;
152
+        return 'WECHATPAY2-SHA256-RSA2048 ' . $auth;
153 153
     }
154 154
 }
155 155
 
@@ -197,8 +197,8 @@  discard block
 block discarded – undo
197 197
         $sign = $message->getHeaderLine('Wechatpay-Signature');
198 198
         $body = (string) $message->getBody();
199 199
 
200
-        $content = $timestamp."\n".$random."\n".$body."\n";
201
-        $public = get_wechat_config($params)->get('wechat_public_cert_path.'.$wechatSerial);
200
+        $content = $timestamp . "\n" . $random . "\n" . $body . "\n";
201
+        $public = get_wechat_config($params)->get('wechat_public_cert_path.' . $wechatSerial);
202 202
 
203 203
         if (empty($sign)) {
204 204
             throw new InvalidResponseException(Exception::INVALID_RESPONSE_SIGN, '', ['headers' => $message->getHeaders(), 'body' => $body]);
Please login to merge, or discard this patch.