@@ -25,7 +25,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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, |