Completed
Pull Request — master (#4)
by Rémi
06:39
created
spec/Client/ClientSpec.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -174,8 +174,8 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Client/Client.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Exception/RequestException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Yproximite\Api\Exception;
5 5
 
Please login to merge, or discard this patch.
src/Message/CallTracking/CallTrackingPatchMessage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Yproximite\Api\Message\CallTracking;
5 5
 
Please login to merge, or discard this patch.
src/Message/CallTracking/AbstractCallTrackingMessage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Yproximite\Api\Message\CallTracking;
5 5
 
Please login to merge, or discard this patch.
src/Message/Site/SitePatchMessage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Yproximite\Api\Message\Site;
5 5
 
Please login to merge, or discard this patch.
src/Message/Site/AbstractSiteMessage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Yproximite\Api\Message\Site;
5 5
 
Please login to merge, or discard this patch.
src/Message/TeamWorker/TeamWorkerPatchMessage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Yproximite\Api\Message\TeamWorker;
5 5
 
Please login to merge, or discard this patch.
src/Message/TeamWorker/TeamWorkerPostMessage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Yproximite\Api\Message\TeamWorker;
5 5
 
Please login to merge, or discard this patch.