@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace ByJG\Swagger; |
4 | 4 | |
5 | -use GuzzleHttp\Client; |
|
6 | -use GuzzleHttp\Exception\BadResponseException; |
|
7 | 5 | use GuzzleHttp\Psr7\Request; |
8 | 6 | use PHPUnit\Framework\TestCase; |
9 | 7 |
@@ -170,11 +170,11 @@ |
||
170 | 170 | try { |
171 | 171 | $response = $this->guzzleHttpClient->send($request, ['allow_redirects' => false]); |
172 | 172 | $responseHeader = $response->getHeaders(); |
173 | - $responseBody = json_decode((string) $response->getBody(), true); |
|
173 | + $responseBody = json_decode((string)$response->getBody(), true); |
|
174 | 174 | $statusReturned = $response->getStatusCode(); |
175 | 175 | } catch (BadResponseException $ex) { |
176 | 176 | $responseHeader = $ex->getResponse()->getHeaders(); |
177 | - $responseBody = json_decode((string) $ex->getResponse()->getBody(), true); |
|
177 | + $responseBody = json_decode((string)$ex->getResponse()->getBody(), true); |
|
178 | 178 | $statusReturned = $ex->getResponse()->getStatusCode(); |
179 | 179 | } |
180 | 180 |