Passed
Push — master ( 80d84f...b77c15 )
by ma
01:46
created
src/Gateways/Wechat.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -135,10 +135,10 @@  discard block
 block discarded – undo
135 135
                 throw new OAuthException("Wechat APP登录 需要传输access_token参数! ");
136 136
             }
137 137
             $this->token['access_token'] = $_REQUEST['access_token'];
138
-        }elseif ($this->type == 'applets'){
138
+        } elseif ($this->type == 'applets'){
139 139
             //小程序
140 140
             return $this->applets();
141
-        }else {
141
+        } else {
142 142
             /** 获取token信息 */
143 143
             $this->getToken();
144 144
         }
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
         $data = json_decode($token, true);
220 220
         if (isset($data['access_token'])) {
221 221
             return $data;
222
-        }elseif (isset($data['session_key'])){
222
+        } elseif (isset($data['session_key'])){
223 223
             //小程序登录
224 224
             return $data;
225 225
         } else {
Please login to merge, or discard this patch.
src/Gateways/Facebook.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
                 throw new OAuthException("Facebook APP登录 需要传输access_token参数! ");
97 97
             }
98 98
             $this->token['access_token'] = $_REQUEST['access_token'];
99
-        }else {
99
+        } else {
100 100
             $this->getToken();
101 101
         }
102 102
         $fields = isset($this->config['fields']) ? $this->config['fields'] : 'id,name,gender,picture.width(400)';
Please login to merge, or discard this patch.