Completed
Push — master ( 201b08...3c99d8 )
by Carlos
01:27
created
src/Providers/WeChat.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
         parent::__construct($config);
26 26
 
27 27
         if ($this->getConfig()->has('component')) {
28
-            $this->prepareForComponent((array) $this->getConfig()->get('component'));
28
+            $this->prepareForComponent((array)$this->getConfig()->get('component'));
29 29
         }
30 30
     }
31 31
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     {
100 100
         $query = http_build_query($this->getCodeFields(), '', '&', $this->encodingType);
101 101
 
102
-        return $url . '?' . $query . '#wechat_redirect';
102
+        return $url.'?'.$query.'#wechat_redirect';
103 103
     }
104 104
 
105 105
     protected function getCodeFields(): array
@@ -121,10 +121,10 @@  discard block
 block discarded – undo
121 121
     protected function getTokenUrl(): string
122 122
     {
123 123
         if (!empty($this->component)) {
124
-            return $this->baseUrl . '/oauth2/component/access_token';
124
+            return $this->baseUrl.'/oauth2/component/access_token';
125 125
         }
126 126
 
127
-        return $this->baseUrl . '/oauth2/access_token';
127
+        return $this->baseUrl.'/oauth2/access_token';
128 128
     }
129 129
 
130 130
     /**
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     {
160 160
         $language = $this->withCountryCode ? null : (isset($this->parameters['lang']) ? $this->parameters['lang'] : 'zh_CN');
161 161
 
162
-        $response = $this->getHttpClient()->get($this->baseUrl . '/userinfo', [
162
+        $response = $this->getHttpClient()->get($this->baseUrl.'/userinfo', [
163 163
             'query' => array_filter([
164 164
                 'access_token' => $token,
165 165
                 'openid' => $this->openid,
Please login to merge, or discard this patch.