Passed
Push — master ( ef0403...99bfc0 )
by ma
01:57
created
src/Gateways/Line.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             'scope'         => $this->config['scope'],
40 40
             'state'         => $this->config['state'] ?: Str::random(),
41 41
         ];
42
-        return $this->AuthorizeURL . '?' . http_build_query($params);
42
+        return $this->AuthorizeURL.'?'.http_build_query($params);
43 43
     }
44 44
 
45 45
     /**
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             'channel' => ConstCode::TYPE_LINE,
66 66
             'nickname'    => $result['displayName'],
67 67
             'gender'  => ConstCode::GENDER, //line不返回性别信息
68
-            'avatar'  => isset($result['pictureUrl']) ? $result['pictureUrl'] . '/large' : '',
68
+            'avatar'  => isset($result['pictureUrl']) ? $result['pictureUrl'].'/large' : '',
69 69
             'native'   => $result,
70 70
         ];
71 71
         return $userInfo;
@@ -99,10 +99,10 @@  discard block
 block discarded – undo
99 99
         $method  = strtoupper($method);
100 100
         $request = [
101 101
             'method' => $method,
102
-            'uri'    => self::API_BASE . $api,
102
+            'uri'    => self::API_BASE.$api,
103 103
         ];
104 104
 
105
-        $headers = ['Authorization: ' . $this->token['token_type'] . ' ' . $this->token['access_token']];
105
+        $headers = ['Authorization: '.$this->token['token_type'].' '.$this->token['access_token']];
106 106
 
107 107
         $data = $this->$method($request['uri'], $params, $headers);
108 108
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      * @author: JiaMeng <[email protected]>
116 116
      * Updater:
117 117
      */
118
-    protected function getToken(){
118
+    protected function getToken() {
119 119
         if (empty($this->token)) {
120 120
             /** 验证state参数 */
121 121
             $this->checkState();
@@ -125,11 +125,11 @@  discard block
 block discarded – undo
125 125
             $params = http_build_query($params);
126 126
 
127 127
             /** 获取access_token */
128
-            $token =  $this->post($this->AccessTokenURL, $params,$this->getHeaders());
128
+            $token = $this->post($this->AccessTokenURL, $params, $this->getHeaders());
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.