Test Failed
Push — main ( 4937b3...9ea74c )
by Dylan
02:39
created
src/services/ApiService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
         if ($curl->isValid()) {
78 78
             if ($curl->isJSON()) {
79 79
                 return ObjectFactory::make($this->getClient(), $curl->getJSON());
80
-            } else {
80
+            }else {
81 81
                 return true;
82 82
             }
83 83
         }
Please login to merge, or discard this patch.
src/services/Products.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     public function fetch(int $id): ?Product
40 40
     {
41 41
         /** @var Product|null $fetch */
42
-        $fetch = $this->_get('api/products/product/' . $id);
42
+        $fetch = $this->_get('api/products/product/'.$id);
43 43
         return $fetch;
44 44
     }
45 45
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     public function update(int $id, array $data): ?Product
67 67
     {
68 68
         /** @var Product|null $post */
69
-        $post = $this->_post('api/products/product/' . $id, $data);
69
+        $post = $this->_post('api/products/product/'.$id, $data);
70 70
         return $post;
71 71
     }
72 72
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      */
79 79
     public function delete(int $id): bool
80 80
     {
81
-        return $this->_delete('api/products/product/' . $id);
81
+        return $this->_delete('api/products/product/'.$id);
82 82
     }
83 83
 
84 84
     /**
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     public function setStockLevel(int $id, int $quantity, Location $location): bool
93 93
     {
94
-        return (bool) $this->_post('api/products/inventory/'. $id . '/quantity', [
94
+        return (bool) $this->_post('api/products/inventory/'.$id.'/quantity', [
95 95
             'location'  => $location->ID,
96 96
             'quantity'  => $quantity
97 97
         ]);
Please login to merge, or discard this patch.