Completed
Push — master ( 8bd24f...d360e0 )
by Carlos
01:18
created
src/Providers/FeiShu.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
     protected function getAuthUrl(): string
18 18
     {
19
-        return $this->buildAuthUrlFromBase($this->baseUrl . 'authen/v1/index');
19
+        return $this->buildAuthUrlFromBase($this->baseUrl.'authen/v1/index');
20 20
     }
21 21
 
22 22
     protected function getCodeFields(): array
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
     protected function getTokenUrl(): string
31 31
     {
32
-        return $this->baseUrl . 'authen/v1/access_token';
32
+        return $this->baseUrl.'authen/v1/access_token';
33 33
     }
34 34
 
35 35
     /**
@@ -81,9 +81,9 @@  discard block
 block discarded – undo
81 81
     protected function getUserByToken(string $token): array
82 82
     {
83 83
         $response = $this->getHttpClient()->get(
84
-            $this->baseUrl . '/authen/v1/user_info',
84
+            $this->baseUrl.'/authen/v1/user_info',
85 85
             [
86
-                'headers' => ['Content-Type' => 'application/json', 'Authorization' => 'Bearer ' . $token],
86
+                'headers' => ['Content-Type' => 'application/json', 'Authorization' => 'Bearer '.$token],
87 87
                 'query' => array_filter(
88 88
                     [
89 89
                         'user_access_token' => $token,
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         $response = \json_decode($response->getBody(), true) ?? [];
96 96
 
97 97
         if (empty($response['data'])) {
98
-            throw new \InvalidArgumentException('You have error! ' . json_encode($response, JSON_UNESCAPED_UNICODE));
98
+            throw new \InvalidArgumentException('You have error! '.json_encode($response, JSON_UNESCAPED_UNICODE));
99 99
         }
100 100
 
101 101
         return $response['data'];
Please login to merge, or discard this patch.