Passed
Push — master ( ffbf7e...4ee940 )
by ma
01:42
created
src/Gateways/Alipay.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
                 throw new \Exception("AliPay APP登录 需要传输access_token参数! ");
131 131
             }
132 132
             $this->token['access_token'] = $_REQUEST['access_token'];
133
-        }else {
133
+        } else {
134 134
             /** 获取token信息 */
135 135
             $this->getToken();
136 136
         }
Please login to merge, or discard this patch.
src/Connector/Gateway.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,9 @@  discard block
 block discarded – undo
108 108
         ];
109 109
         $this->config    = array_merge($_config, $config);
110 110
         foreach($this->config as $key=>$val){
111
-            if(property_exists($this,$key)) $this->$key=$val;
111
+            if(property_exists($this,$key)) {
112
+                $this->$key=$val;
113
+            }
112 114
         }
113 115
         $this->timestamp = time();
114 116
     }
@@ -246,7 +248,7 @@  discard block
 block discarded – undo
246 248
             $token =  $this->POST($this->AccessTokenURL, $params);
247 249
             /** 解析token值(子类实现此方法) */
248 250
             $this->token = $this->parseToken($token);
249
-        }else{
251
+        } else{
250 252
             return $this->token;
251 253
         }
252 254
     }
Please login to merge, or discard this patch.