Passed
Push — master ( 99bfc0...d990ad )
by ma
19:38
created
src/Gateways/Apple.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
         ];
110 110
 
111 111
         $payload = $this->base64UrlEncode(json_encode($headers)) . '.' . 
112
-                  $this->base64UrlEncode(json_encode($claims));
112
+                    $this->base64UrlEncode(json_encode($claims));
113 113
 
114 114
         openssl_sign($payload, $signature, $key, OPENSSL_ALGO_SHA256);
115 115
         
Please login to merge, or discard this patch.
example/demo/connect.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -30,11 +30,11 @@
 block discarded – undo
30 30
     }
31 31
 } else {
32 32
     $arr = $oauth->login($type);
33
-     if (isset($arr['code']) && $arr['code'] == 0) {
34
-         exit("<script language='javascript'>window.location.href='{$arr['url']}';</script>");
35
-     } elseif (isset($arr['code'])) {
36
-         exit('登录接口返回:' . $arr['msg']);
37
-     } else {
38
-         exit('获取登录地址失败');
39
-     }
33
+        if (isset($arr['code']) && $arr['code'] == 0) {
34
+            exit("<script language='javascript'>window.location.href='{$arr['url']}';</script>");
35
+        } elseif (isset($arr['code'])) {
36
+            exit('登录接口返回:' . $arr['msg']);
37
+        } else {
38
+            exit('获取登录地址失败');
39
+        }
40 40
 }
Please login to merge, or discard this patch.