@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Yproximite\Api\Message\Media; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Yproximite\Api\Message\Media; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Yproximite\Api\Message\Media; |
5 | 5 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Yproximite\Api\Client; |
5 | 5 | |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | { |
172 | 172 | try { |
173 | 173 | $content = $this->doSendRequest($method, $uri, $body, $headers); |
174 | - } catch (TransferException $e) { |
|
174 | + }catch (TransferException $e) { |
|
175 | 175 | if ($e->getResponse() && $e->getResponse()->getStatusCode() === 401 && !$this->apiTokenFresh) { |
176 | 176 | $this->resetApiToken(); |
177 | 177 | |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | |
209 | 209 | try { |
210 | 210 | $response = $this->getHttpClient()->sendRequest($request); |
211 | - } catch (HttpTransferException $e) { |
|
211 | + }catch (HttpTransferException $e) { |
|
212 | 212 | throw new TransferException( |
213 | 213 | $e->getMessage(), |
214 | 214 | $request, |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | |
273 | 273 | try { |
274 | 274 | $data = $this->sendRequest('POST', '/login_check', ['api_key' => $this->apiKey], [], false); |
275 | - } catch (TransferException $e) { |
|
275 | + }catch (TransferException $e) { |
|
276 | 276 | throw new AuthenficationException('Could not request a token.'); |
277 | 277 | } |
278 | 278 |