@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace AcquiroPay\Exceptions; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace AcquiroPay; |
6 | 6 | |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | |
145 | 145 | switch ($response->getStatusCode()) { |
146 | 146 | case 404: |
147 | - throw new NotFoundException((string)$response->getBody()); |
|
147 | + throw new NotFoundException((string) $response->getBody()); |
|
148 | 148 | case 403: |
149 | 149 | throw new ForbiddenException; |
150 | 150 | default: |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | |
192 | 192 | protected function token(): ?string |
193 | 193 | { |
194 | - return $this->cache->remember('acquiropay_api_token_'.md5($this->url), 10, function () { |
|
194 | + return $this->cache->remember('acquiropay_api_token_'.md5($this->url), 10, function() { |
|
195 | 195 | $response = $this->http->post( |
196 | 196 | $this->url.'/login', |
197 | 197 | ['form_params' => ['username' => $this->username, 'password' => $this->password]] |