Passed
Push — master ( 7e2579...dbfe72 )
by ma
02:15
created
src/Connector/Gateway.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -129,7 +129,9 @@  discard block
 block discarded – undo
129 129
         ];
130 130
         $this->config    = array_merge($_config, $config);
131 131
         foreach($this->config as $key=>$val){
132
-            if(property_exists($this,$key)) $this->$key=$val;
132
+            if(property_exists($this,$key)) {
133
+                $this->$key=$val;
134
+            }
133 135
         }
134 136
         $this->timestamp = time();
135 137
     }
@@ -267,7 +269,7 @@  discard block
 block discarded – undo
267 269
             $token =  $this->post($this->AccessTokenURL, $params,$this->getHeaders());
268 270
             /** 解析token值(子类实现此方法) */
269 271
             $this->token = $this->parseToken($token);
270
-        }else{
272
+        } else{
271 273
             return $this->token;
272 274
         }
273 275
     }
Please login to merge, or discard this patch.
example/demo/connect.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         } else {
29 29
             exit('获取登录数据失败');
30 30
         }
31
-    }catch (\Exception $exception){
31
+    } catch (\Exception $exception){
32 32
         echo $exception->getFile();
33 33
         echo $exception->getLine();
34 34
         echo $exception->getMessage();
Please login to merge, or discard this patch.