@@ -17,7 +17,6 @@ |
||
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]> |
@@ -204,7 +204,7 @@ discard block |
||
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 |
||
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 | /** |
@@ -52,7 +52,7 @@ |
||
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() |