@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | ?Money $price = null, |
| 58 | 58 | ?Money $costPrice = null, |
| 59 | 59 | float $vatPercentage |
| 60 | - ): self { |
|
| 60 | + ) : self { |
|
| 61 | 61 | return new self( |
| 62 | 62 | Uuid::uuid1(), |
| 63 | 63 | $name, |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | ]; |
| 141 | 141 | |
| 142 | 142 | if ($this->costPrice) { |
| 143 | - $data['costPrice'] =[ |
|
| 143 | + $data['costPrice'] = [ |
|
| 144 | 144 | 'amount' => $this->costPrice->getAmount(), |
| 145 | 145 | 'currencyId' => (string) $this->costPrice->getCurrency() |
| 146 | 146 | ]; |