Completed
Pull Request — master (#21)
by Rhodri
03:41
created
src/GenericApi.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 use Sylius\Api\Factory\PaginatorFactory;
18 18
 use Sylius\Api\Factory\PaginatorFactoryInterface;
19 19
 use Symfony\Component\Serializer\Encoder\JsonDecode;
20
-use Symfony\Component\Serializer\Encoder\XmlEncoder;
21 20
 
22 21
 /**
23 22
  * @author Michał Marcinkowski <[email protected]>
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
     {
205 205
         $responseType = $this->getResponseType($response);
206 206
 
207
-        return $this->{$responseType}((string)$response->getBody());
207
+        return $this->{$responseType}((string) $response->getBody());
208 208
     }
209 209
 
210 210
     private function getResponseType(ResponseInterface $response)
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
             }
219 219
         }
220 220
 
221
-        throw new InvalidResponseFormatException((string)$response->getBody(), $response->getStatusCode());
221
+        throw new InvalidResponseFormatException((string) $response->getBody(), $response->getStatusCode());
222 222
     }
223 223
 
224 224
     /**
Please login to merge, or discard this patch.
src/Paginator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
         $this->queryParameters = $queryParameters;
53 53
         $this->queryParameters['page'] = $this->currentPage;
54 54
         $this->uriParameters = $uriParameters;
55
-        $this->lastPage = (int)ceil($this->getNumberOfResults() / $queryParameters['limit']);
55
+        $this->lastPage = (int) ceil($this->getNumberOfResults() / $queryParameters['limit']);
56 56
     }
57 57
 
58 58
     public function getCurrentPageResults()
Please login to merge, or discard this patch.