Passed
Branch master (c86028)
by Laurens
04:35
created
Category
src/eCurringClientFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Http/Adapter/Guzzle/Client.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Factory/SubscriptionPlanFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Resource/Subscription.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Resource/Cursor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.