@@ -33,7 +33,7 @@ |
||
| 33 | 33 | $handler = new HandlerStack(); |
| 34 | 34 | $handler->setHandler(new CurlHandler()); |
| 35 | 35 | |
| 36 | - $handler->push(Middleware::mapRequest(function (RequestInterface $request) use ($apiKey) { |
|
| 36 | + $handler->push(Middleware::mapRequest(function(RequestInterface $request) use ($apiKey) { |
|
| 37 | 37 | return $request->withHeader('X-Authorization', $apiKey); |
| 38 | 38 | })); |
| 39 | 39 | |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | |
| 64 | 64 | public function getJson(ResponseInterface $response): string |
| 65 | 65 | { |
| 66 | - return (string) $response->getBody(); |
|
| 66 | + return (string)$response->getBody(); |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | $subscriptions = []; |
| 58 | 58 | |
| 59 | 59 | foreach ($relationships['subscriptions']['data'] as $subscription) { |
| 60 | - if ($subscription['type'] !== 'subscription') { |
|
| 60 | + if ($subscription['type'] !== 'subscription') { |
|
| 61 | 61 | continue; |
| 62 | 62 | } |
| 63 | 63 | |
@@ -180,7 +180,7 @@ |
||
| 180 | 180 | ?string $subscriptionWebhookUrl = null, |
| 181 | 181 | ?string $transactionWebhookUrl = null |
| 182 | 182 | |
| 183 | - ): self { |
|
| 183 | + ) : self { |
|
| 184 | 184 | $self = new self(); |
| 185 | 185 | $self->customer = $customer; |
| 186 | 186 | $self->subscriptionPlan = $subscriptionPlan; |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | */ |
| 122 | 122 | public function nextPage(): void |
| 123 | 123 | { |
| 124 | - $pageNumber = $this->currentPage +1; |
|
| 124 | + $pageNumber = $this->currentPage+1; |
|
| 125 | 125 | $this->objects = $this->loadPage($pageNumber, $this->itemsPerPage); |
| 126 | 126 | } |
| 127 | 127 | |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | */ |
| 131 | 131 | public function previousPage(): void |
| 132 | 132 | { |
| 133 | - $pageNumber = $this->currentPage -1; |
|
| 133 | + $pageNumber = $this->currentPage-1; |
|
| 134 | 134 | if ($pageNumber < 0) { |
| 135 | 135 | $this->objects = $this->loadPage($pageNumber, $this->itemsPerPage); |
| 136 | 136 | } |
@@ -159,5 +159,5 @@ discard block |
||
| 159 | 159 | /** |
| 160 | 160 | * @throws NonExistentPageNumberException |
| 161 | 161 | */ |
| 162 | - abstract protected function loadPage(int $no, int $itemsPerPage): array ; |
|
| 162 | + abstract protected function loadPage(int $no, int $itemsPerPage): array; |
|
| 163 | 163 | } |