Passed
Branch releases/1.0-dev (6a4c8c)
by Laurens
03:03
created
src/API/Product/Product.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         ImageCollection $imageCollection,
113 113
         VariantCollection $variants,
114 114
         ?string $externalReference = null
115
-    ): self {
115
+    ) : self {
116 116
         return new self(
117 117
             Uuid::uuid1(),
118 118
             $categories,
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
         VariantCollection $variants,
211 211
         ?string $externalReference = null,
212 212
         ?string $etag = null,
213
-        ?DateTime $updatedAt  = null,
213
+        ?DateTime $updatedAt = null,
214 214
         ?UuidInterface $updatedBy = null,
215 215
         ?DateTime $createdAt = null,
216 216
         ?Vat $vatPercentage = null
Please login to merge, or discard this patch.
src/API/Product/Variant.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         Money $price,
100 100
         ?Money $costPrice = null,
101 101
         ?Vat $vat = null
102
-    ): self {
102
+    ) : self {
103 103
         return new self(
104 104
             Uuid::uuid1(),
105 105
             $name,
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
         ];
183 183
 
184 184
         if ($this->costPrice) {
185
-            $data['costPrice'] =[
185
+            $data['costPrice'] = [
186 186
                 'amount' => $this->costPrice->getAmount(),
187 187
                 'currencyId' => (string) $this->costPrice->getCurrency()
188 188
             ];
Please login to merge, or discard this patch.
src/Client/Purchase/ProductBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
             return null;
83 83
         }
84 84
 
85
-        return new Vat((string)$data[$key]);
85
+        return new Vat((string) $data[$key]);
86 86
     }
87 87
 
88 88
     private function getImageFromKey(string $key, array $data): ?Image
Please login to merge, or discard this patch.