@@ -174,8 +174,8 @@ |
||
| 174 | 174 | |
| 175 | 175 | $secondRequestCounter = 0; |
| 176 | 176 | |
| 177 | - $httpClient->sendRequest($secondRequest)->will(function () use ($secondRequestCounter, $secondResponse) { |
|
| 178 | - $secondRequestCounter ++; |
|
| 177 | + $httpClient->sendRequest($secondRequest)->will(function() use ($secondRequestCounter, $secondResponse) { |
|
| 178 | + $secondRequestCounter++; |
|
| 179 | 179 | |
| 180 | 180 | if ($secondRequestCounter === 1) { |
| 181 | 181 | return MessageFactoryDiscovery::find()->createResponse(401); |
@@ -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 | |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | |
| 114 | 114 | try { |
| 115 | 115 | $content = $this->doSendRequest($request); |
| 116 | - } catch (InvalidResponseException $e) { |
|
| 116 | + }catch (InvalidResponseException $e) { |
|
| 117 | 117 | if ($e->getResponse()->getStatusCode() === 401 && !$this->apiTokenFresh) { |
| 118 | 118 | $this->resetApiToken(); |
| 119 | 119 | |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | { |
| 184 | 184 | try { |
| 185 | 185 | $response = $this->getHttpClient()->sendRequest($request); |
| 186 | - } catch (HttpTransferException $e) { |
|
| 186 | + }catch (HttpTransferException $e) { |
|
| 187 | 187 | throw new TransferException( |
| 188 | 188 | $e->getMessage(), |
| 189 | 189 | $request, |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | |
| 265 | 265 | try { |
| 266 | 266 | $data = $this->doSendRequest($request); |
| 267 | - } catch (RequestException $e) { |
|
| 267 | + }catch (RequestException $e) { |
|
| 268 | 268 | throw new AuthenficationException('Could not request a token.'); |
| 269 | 269 | } |
| 270 | 270 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Yproximite\Api\Exception; |
| 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\CallTracking; |
| 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\CallTracking; |
| 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\Site; |
| 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\Site; |
| 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\TeamWorker; |
| 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\Model\TeamWorker; |
| 5 | 5 | |