@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | { |
| 162 | 162 | $unitPrice = $this->getUnitPrice(); |
| 163 | 163 | |
| 164 | - if(!$unitPrice) { |
|
| 164 | + if (!$unitPrice) { |
|
| 165 | 165 | return null; |
| 166 | 166 | } |
| 167 | 167 | |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | { |
| 175 | 175 | $specialOfferPrice = $this->getSpecialOfferPrice(); |
| 176 | 176 | |
| 177 | - if(!$specialOfferPrice) { |
|
| 177 | + if (!$specialOfferPrice) { |
|
| 178 | 178 | return null; |
| 179 | 179 | } |
| 180 | 180 | |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | */ |
| 189 | 189 | public function getId(): int |
| 190 | 190 | { |
| 191 | - return (int)$this->id; |
|
| 191 | + return (int) $this->id; |
|
| 192 | 192 | } |
| 193 | 193 | |
| 194 | 194 | /** |
@@ -278,10 +278,10 @@ discard block |
||
| 278 | 278 | */ |
| 279 | 279 | public function getSpecialOfferPrice() : ?Money |
| 280 | 280 | { |
| 281 | - if(!$this->currency) { |
|
| 281 | + if (!$this->currency) { |
|
| 282 | 282 | return null; |
| 283 | 283 | } |
| 284 | - return DandomainFoundation\createMoney($this->currency->getIsoCodeAlpha(), (int)$this->specialOfferPrice); |
|
| 284 | + return DandomainFoundation\createMoney($this->currency->getIsoCodeAlpha(), (int) $this->specialOfferPrice); |
|
| 285 | 285 | } |
| 286 | 286 | |
| 287 | 287 | /** |
@@ -291,7 +291,7 @@ discard block |
||
| 291 | 291 | public function setSpecialOfferPrice(Money $specialOfferPrice) : PriceInterface |
| 292 | 292 | { |
| 293 | 293 | // @todo change type from int to string |
| 294 | - $this->specialOfferPrice = (int)$specialOfferPrice->getAmount(); |
|
| 294 | + $this->specialOfferPrice = (int) $specialOfferPrice->getAmount(); |
|
| 295 | 295 | |
| 296 | 296 | return $this; |
| 297 | 297 | } |
@@ -301,10 +301,10 @@ discard block |
||
| 301 | 301 | */ |
| 302 | 302 | public function getUnitPrice() : ?Money |
| 303 | 303 | { |
| 304 | - if(!$this->currency) { |
|
| 304 | + if (!$this->currency) { |
|
| 305 | 305 | return null; |
| 306 | 306 | } |
| 307 | - return DandomainFoundation\createMoney($this->currency->getIsoCodeAlpha(), (int)$this->unitPrice); |
|
| 307 | + return DandomainFoundation\createMoney($this->currency->getIsoCodeAlpha(), (int) $this->unitPrice); |
|
| 308 | 308 | } |
| 309 | 309 | |
| 310 | 310 | /** |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | public function setUnitPrice(Money $unitPrice) : PriceInterface |
| 315 | 315 | { |
| 316 | 316 | // @todo change type from int to string |
| 317 | - $this->unitPrice = (int)$unitPrice->getAmount(); |
|
| 317 | + $this->unitPrice = (int) $unitPrice->getAmount(); |
|
| 318 | 318 | |
| 319 | 319 | return $this; |
| 320 | 320 | } |