@@ -112,7 +112,7 @@ discard block |
||
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 |
||
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 |
@@ -99,7 +99,7 @@ discard block |
||
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 |
||
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 | ]; |
@@ -82,7 +82,7 @@ |
||
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 |