@@ -137,6 +137,12 @@ |
||
137 | 137 | return Mockery::mock(HttpClient::class); |
138 | 138 | } |
139 | 139 | |
140 | + /** |
|
141 | + * @param Mockery\MockInterface $httpClient |
|
142 | + * @param string $url |
|
143 | + * |
|
144 | + * @return HttpClient |
|
145 | + */ |
|
140 | 146 | private function sendRequest($httpClient, $url, $inputs) |
141 | 147 | { |
142 | 148 | $httpClient |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | 'headers' => [ |
76 | 76 | 'Accept' => 'application/json', |
77 | 77 | 'Content-Type' => 'application/json', |
78 | - 'Authorization' => 'Bearer ' . $this->accessToken, |
|
78 | + 'Authorization' => 'Bearer '.$this->accessToken, |
|
79 | 79 | ], |
80 | 80 | 'json' => $body, |
81 | 81 | ]); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | */ |
91 | 91 | public function accessToken() |
92 | 92 | { |
93 | - $response = $this->client->request('POST', $this->baseUrl . '/token', [ |
|
93 | + $response = $this->client->request('POST', $this->baseUrl.'/token', [ |
|
94 | 94 | 'headers' => [ |
95 | 95 | 'Accept' => 'application/json', |
96 | 96 | 'Content-Type' => 'application/json', |