Completed
Pull Request — master (#33)
by
unknown
01:54
created
src/Providers/CorpWeChatProvider.php 3 patches
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -62,6 +62,8 @@
 block discarded – undo
62 62
 
63 63
     /**
64 64
      * {@inheritdoc}.
65
+     * @param string $url
66
+     * @param string $state
65 67
      */
66 68
     protected function buildAuthUrlFromBase($url, $state)
67 69
     {
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
             ];
145 145
         }
146 146
         return [
147
-						'access_token'=>$this->config['longlive_access_token'],
147
+                        'access_token'=>$this->config['longlive_access_token'],
148 148
             'code'=>$code,
149 149
         ];    
150 150
     
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
     }
175 175
     // !!应该尽量不要调用, 除非 单独与overture/wechat使用, 否则同时获取accesstoken, 会冲突
176 176
     public function getLongiveAccessToken($forse_refresh = false)
177
-		{
177
+        {
178 178
         $getTokenUrl = $this->getTokenUrl();
179 179
         $response = $this->getHttpClient()->get($getTokenUrl, [
180 180
             'query' => $this->getTokenFields(),
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     protected function getTokenFields($code = false)
138 138
     {
139 139
 
140
-        if (!$code){
140
+        if (!$code) {
141 141
             return [
142 142
                 'corpid' => $this->clientId,
143 143
                 'corpsecret' => $this->clientSecret,
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     public function getAccessToken($code)
159 159
     {
160 160
         //没有指定则自己获取
161
-        if (!$this->config['longlive_access_token']){
161
+        if (!$this->config['longlive_access_token']) {
162 162
             $this->config['longlive_access_token'] = $this->getLongiveAccessToken();
163 163
         }
164 164
         $param = $this->getTokenFields($code);
Please login to merge, or discard this patch.