Completed
Push — master ( 93c9f6...411d03 )
by Songda
01:33
created
src/Gateways/Alipay/WebGateway.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,13 +53,13 @@
 block discarded – undo
53 53
     protected function buildPayHtml($endpoint, $payload, $method = 'POST'): Response
54 54
     {
55 55
         if (strtoupper($method) === 'GET') {
56
-            return RedirectResponse::create($endpoint.'?'.http_build_query($payload));
56
+            return RedirectResponse::create($endpoint . '?' . http_build_query($payload));
57 57
         }
58 58
 
59
-        $sHtml = "<form id='alipay_submit' name='alipay_submit' action='".$endpoint."' method='.$method.'>";
59
+        $sHtml = "<form id='alipay_submit' name='alipay_submit' action='" . $endpoint . "' method='.$method.'>";
60 60
         foreach ($payload as $key => $val) {
61 61
             $val = str_replace("'", '&apos;', $val);
62
-            $sHtml .= "<input type='hidden' name='".$key."' value='".$val."'/>";
62
+            $sHtml .= "<input type='hidden' name='" . $key . "' value='" . $val . "'/>";
63 63
         }
64 64
         $sHtml .= "<input type='submit' value='ok' style='display:none;'></form>";
65 65
         $sHtml .= "<script>document.forms['alipay_submit'].submit();</script>";
Please login to merge, or discard this patch.