@@ -126,7 +126,7 @@ |
||
126 | 126 | { |
127 | 127 | $list[] = $this->createResourceObject($import); |
128 | 128 | } |
129 | - } while ($page<($to ?? $result['page']['total_pages'])); |
|
129 | + } while ($page < ($to ?? $result['page']['total_pages'])); |
|
130 | 130 | |
131 | 131 | return $list; |
132 | 132 | } |
@@ -346,7 +346,7 @@ discard block |
||
346 | 346 | */ |
347 | 347 | private function parseResponseBody(ResponseInterface $response): ?array |
348 | 348 | { |
349 | - $body = (string)$response->getBody(); |
|
349 | + $body = (string) $response->getBody(); |
|
350 | 350 | if (empty($body)) |
351 | 351 | { |
352 | 352 | if ($response->getStatusCode()===self::HTTP_NO_CONTENT) |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | throw new ClubCollectApiException("Unable to decode ClubCollect response: '{$body}'."); |
364 | 364 | } |
365 | 365 | |
366 | - if ($response->getStatusCode()>=400) |
|
366 | + if ($response->getStatusCode() >= 400) |
|
367 | 367 | { |
368 | 368 | throw ClubCollectApiException::createFromResponse($response); |
369 | 369 | } |