@@ -11,7 +11,6 @@ |
||
| 11 | 11 | use PHPUnit\Framework\TestCase; |
| 12 | 12 | use Prophecy\Argument; |
| 13 | 13 | use Prophecy\Prophecy\ObjectProphecy; |
| 14 | -use Psr\Http\Message\ResponseInterface; |
|
| 15 | 14 | |
| 16 | 15 | final class RefreshSessionMiddlewareTest extends TestCase |
| 17 | 16 | { |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | */ |
| 31 | 31 | public function get($url, array $options = []) |
| 32 | 32 | { |
| 33 | - return $this->requestAPI('GET', (string)$url, $options); |
|
| 33 | + return $this->requestAPI('GET', (string) $url, $options); |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | /** |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | */ |
| 42 | 42 | public function post($url, array $options = []) |
| 43 | 43 | { |
| 44 | - return $this->requestAPI('POST', (string)$url, $options); |
|
| 44 | + return $this->requestAPI('POST', (string) $url, $options); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /** |
@@ -68,9 +68,9 @@ discard block |
||
| 68 | 68 | private function requestAPI($method, $url, array $options = []) |
| 69 | 69 | { |
| 70 | 70 | try { |
| 71 | - return $this->sendRequest((string)$method, (string)$url, $options); |
|
| 71 | + return $this->sendRequest((string) $method, (string) $url, $options); |
|
| 72 | 72 | } catch (SessionWasExpiredException $e) { |
| 73 | - return $this->sendRequest((string)$method, (string)$url, $options); |
|
| 73 | + return $this->sendRequest((string) $method, (string) $url, $options); |
|
| 74 | 74 | } catch (ClientException $e) { |
| 75 | 75 | throw new BunqException($e); |
| 76 | 76 | } |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | */ |
| 86 | 86 | private function sendRequest($method, $url, array $options = []) |
| 87 | 87 | { |
| 88 | - $response = $this->httpClient->request((string)$method, $url, $options); |
|
| 88 | + $response = $this->httpClient->request((string) $method, $url, $options); |
|
| 89 | 89 | |
| 90 | 90 | return json_decode($response->getBody(), true); |
| 91 | 91 | } |