Completed
Push — master ( 45f493...091345 )
by Carlos
19s
created
src/Providers/WeChat.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         parent::__construct($config);
29 29
 
30 30
         if ($this->getConfig()->has('component')) {
31
-            $this->prepareForComponent((array) $this->getConfig()->get('component'));
31
+            $this->prepareForComponent((array)$this->getConfig()->get('component'));
32 32
         }
33 33
     }
34 34
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     {
84 84
         $query = \http_build_query($this->getCodeFields(), '', '&', $this->encodingType);
85 85
 
86
-        return $url . '?' . $query . '#wechat_redirect';
86
+        return $url.'?'.$query.'#wechat_redirect';
87 87
     }
88 88
 
89 89
     protected function getCodeFields(): array
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 
105 105
     protected function getTokenUrl(): string
106 106
     {
107
-        return \sprintf($this->baseUrl . '/oauth2%s/access_token', empty($this->component) ? '' : '/component');
107
+        return \sprintf($this->baseUrl.'/oauth2%s/access_token', empty($this->component) ? '' : '/component');
108 108
     }
109 109
 
110 110
     public function userFromCode(string $code): Contracts\UserInterface
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     {
129 129
         $language = $this->withCountryCode ? null : (isset($this->parameters['lang']) ? $this->parameters['lang'] : 'zh_CN');
130 130
 
131
-        $response = $this->getHttpClient()->get($this->baseUrl . '/userinfo', [
131
+        $response = $this->getHttpClient()->get($this->baseUrl.'/userinfo', [
132 132
             'query' => \array_filter([
133 133
                 Contracts\RFC6749_ABNF_ACCESS_TOKEN => $token,
134 134
                 'openid' => $this->openid,
Please login to merge, or discard this patch.
src/Providers/Base.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
     {
212 212
         $query = $this->getCodeFields() + ($this->state ? [Contracts\RFC6749_ABNF_STATE => $this->state] : []);
213 213
 
214
-        return $url . '?' . \http_build_query($query, '', '&', $this->encodingType);
214
+        return $url.'?'.\http_build_query($query, '', '&', $this->encodingType);
215 215
     }
216 216
 
217 217
     protected function getCodeFields(): array
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
     {
241 241
         if ($response instanceof StreamInterface) {
242 242
             $response->tell() && $response->rewind();
243
-            $response = (string) $response;
243
+            $response = (string)$response;
244 244
         }
245 245
 
246 246
         if (\is_string($response)) {
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
         }
253 253
 
254 254
         if (empty($response[$this->accessTokenKey])) {
255
-            throw new Exceptions\AuthorizeFailedException('Authorize Failed: ' . Utils::jsonEncode($response, \JSON_UNESCAPED_UNICODE), $response);
255
+            throw new Exceptions\AuthorizeFailedException('Authorize Failed: '.Utils::jsonEncode($response, \JSON_UNESCAPED_UNICODE), $response);
256 256
         }
257 257
 
258 258
         return $response + [
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
 
265 265
     protected function fromJsonBody(MessageInterface $response): array
266 266
     {
267
-        $result = Utils::jsonDecode((string) $response->getBody(), true);
267
+        $result = Utils::jsonDecode((string)$response->getBody(), true);
268 268
 
269 269
         \is_array($result) || throw new Exceptions\InvalidArgumentException('Decoded the given response payload failed.');
270 270
 
Please login to merge, or discard this patch.
src/Providers/XiGua.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
     protected function getAuthUrl(): string
19 19
     {
20
-        return $this->buildAuthUrlFromBase($this->baseUrl . '/oauth/connect');
20
+        return $this->buildAuthUrlFromBase($this->baseUrl.'/oauth/connect');
21 21
     }
22 22
 
23 23
     #[Pure]
Please login to merge, or discard this patch.
src/Providers/TouTiao.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
     protected function getAuthUrl(): string
19 19
     {
20
-        return $this->buildAuthUrlFromBase($this->baseUrl . '/oauth/authorize/');
20
+        return $this->buildAuthUrlFromBase($this->baseUrl.'/oauth/authorize/');
21 21
     }
22 22
 
23 23
     #[Pure]
Please login to merge, or discard this patch.