Test Failed
Push — main ( e2347f...1d1810 )
by Dylan
14:48
created
src/Connector.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,9 @@  discard block
 block discarded – undo
58 58
     public function __get(string $service): ?ApiService
59 59
     {
60 60
         $obj = ServiceFactory::inst($this, $service);
61
-        if (!$obj) throw new BadMethodException("Service for `{$service}` does not exist");
61
+        if (!$obj) {
62
+            throw new BadMethodException("Service for `{$service}` does not exist");
63
+        }
62 64
 
63 65
         return $obj;
64 66
     }
@@ -143,7 +145,9 @@  discard block
 block discarded – undo
143 145
      */
144 146
     public function getHost(): ?string
145 147
     {
146
-        if (!$this->getActiveSite(true)) return null;
148
+        if (!$this->getActiveSite(true)) {
149
+            return null;
150
+        }
147 151
         return $this->_host;
148 152
     }
149 153
 
@@ -152,7 +156,9 @@  discard block
 block discarded – undo
152 156
      */
153 157
     public function getSiteKey(): ?string
154 158
     {
155
-        if (!$this->getActiveSite(true)) return null;
159
+        if (!$this->getActiveSite(true)) {
160
+            return null;
161
+        }
156 162
         return $this->_site_key;
157 163
     }
158 164
 
Please login to merge, or discard this patch.
src/services/Locations.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     public function fetch(int $id): ?Location
23 23
     {
24 24
         /** @var Location|null $fetch */
25
-        $fetch = $this->_get('api/locations/location/' . $id);
25
+        $fetch = $this->_get('api/locations/location/'.$id);
26 26
         return $fetch;
27 27
     }
28 28
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     public function update(int $id, array $data): ?Location
50 50
     {
51 51
         /** @var Location|null $post */
52
-        $post = $this->_post('api/locations/location/' . $id, $data);
52
+        $post = $this->_post('api/locations/location/'.$id, $data);
53 53
         return $post;
54 54
     }
55 55
 
Please login to merge, or discard this patch.
src/services/DeliveryZones.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     public function fetch(int $id): ?DeliveryZone
23 23
     {
24 24
         /** @var DeliveryZone|null $fetch */
25
-        $fetch = $this->_get('api/delivery-zones/zone/' . $id);
25
+        $fetch = $this->_get('api/delivery-zones/zone/'.$id);
26 26
         return $fetch;
27 27
     }
28 28
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     public function update(int $id, array $data): ?DeliveryZone
50 50
     {
51 51
         /** @var DeliveryZone|null $post */
52
-        $post = $this->_post('api/delivery-zones/zone/' . $id, $data);
52
+        $post = $this->_post('api/delivery-zones/zone/'.$id, $data);
53 53
         return $post;
54 54
     }
55 55
 
Please login to merge, or discard this patch.