Passed
Push — master ( 99bfc0...d990ad )
by ma
19:38
created
example/demo/index.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,11 @@
 block discarded – undo
29 29
                         <textarea  rows="5" class="form-control" readonly="readonly">
30 30
                             <?php echo json_encode($value); ?>
31 31
                         </textarea>
32
-                    <?php else:?>
33
-                        <input type="text" value="<?php echo $value; ?>" class="form-control" readonly="readonly"/>
32
+                    <?php else {
33
+    :?>
34
+                        <input type="text" value="<?php echo $value;
35
+}
36
+?>" class="form-control" readonly="readonly"/>
34 37
                     <?php endif;?>
35 38
                 </div>
36 39
             <?php endforeach;?>
Please login to merge, or discard this patch.
example/thinkphp/login.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
19 19
 //        var_dump($result['url']);die;
20 20
         //重定向到第三方登录页
21 21
         header('Location: ' . $result['url']);
22
-    }else{
22
+    } else{
23 23
         /** 登录回调 */
24 24
         $result = $this->callback($name);
25 25
         var_dump($result);die;
26 26
     }
27
-}catch(Exception $e){
27
+} catch(Exception $e){
28 28
     echo 'Oauth登录失败!'.$e->getMessage();
29 29
 }
30 30
\ No newline at end of file
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
@@ -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.
src/Gateways/Line.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
 
130 130
             /** 解析token值 */
131 131
             $this->token = $this->parseToken($token);
132
-        }else{
132
+        } else{
133 133
             return $this->token;
134 134
         }
135 135
     }
Please login to merge, or discard this patch.