@@ -323,7 +323,7 @@ discard block |
||
| 323 | 323 | */ |
| 324 | 324 | public function addOrderLine(OrderLineInterface $orderLine) : OrderInterface |
| 325 | 325 | { |
| 326 | - if(!$this->hasOrderLine($orderLine)) { |
|
| 326 | + if (!$this->hasOrderLine($orderLine)) { |
|
| 327 | 327 | $this->orderLines->add($orderLine); |
| 328 | 328 | $orderLine->setOrder($this); |
| 329 | 329 | } |
@@ -337,7 +337,7 @@ discard block |
||
| 337 | 337 | */ |
| 338 | 338 | public function hasOrderLine($orderLine) : bool |
| 339 | 339 | { |
| 340 | - if($orderLine instanceof OrderLineInterface) { |
|
| 340 | + if ($orderLine instanceof OrderLineInterface) { |
|
| 341 | 341 | $orderLine = $orderLine->getExternalId(); |
| 342 | 342 | } |
| 343 | 343 | |
@@ -368,7 +368,7 @@ discard block |
||
| 368 | 368 | */ |
| 369 | 369 | public function getTotalPrice() : ?Money |
| 370 | 370 | { |
| 371 | - return $this->createMoney((int)$this->totalPrice); |
|
| 371 | + return $this->createMoney((int) $this->totalPrice); |
|
| 372 | 372 | } |
| 373 | 373 | |
| 374 | 374 | /** |
@@ -387,7 +387,7 @@ discard block |
||
| 387 | 387 | */ |
| 388 | 388 | public function getSalesDiscount() : ?Money |
| 389 | 389 | { |
| 390 | - return $this->createMoney((int)$this->salesDiscount); |
|
| 390 | + return $this->createMoney((int) $this->salesDiscount); |
|
| 391 | 391 | } |
| 392 | 392 | |
| 393 | 393 | /** |
@@ -406,7 +406,7 @@ discard block |
||
| 406 | 406 | */ |
| 407 | 407 | public function getGiftCertificateAmount() : ?Money |
| 408 | 408 | { |
| 409 | - return $this->createMoney((int)$this->giftCertificateAmount); |
|
| 409 | + return $this->createMoney((int) $this->giftCertificateAmount); |
|
| 410 | 410 | } |
| 411 | 411 | |
| 412 | 412 | /** |
@@ -425,7 +425,7 @@ discard block |
||
| 425 | 425 | */ |
| 426 | 426 | public function getShippingMethodFee() : ?Money |
| 427 | 427 | { |
| 428 | - return $this->createMoney((int)$this->shippingMethodFee); |
|
| 428 | + return $this->createMoney((int) $this->shippingMethodFee); |
|
| 429 | 429 | } |
| 430 | 430 | |
| 431 | 431 | /** |
@@ -444,7 +444,7 @@ discard block |
||
| 444 | 444 | */ |
| 445 | 445 | public function getPaymentMethodFee() : ?Money |
| 446 | 446 | { |
| 447 | - return $this->createMoney((int)$this->paymentMethodFee); |
|
| 447 | + return $this->createMoney((int) $this->paymentMethodFee); |
|
| 448 | 448 | } |
| 449 | 449 | |
| 450 | 450 | /** |
@@ -463,7 +463,7 @@ discard block |
||
| 463 | 463 | */ |
| 464 | 464 | public function getId(): int |
| 465 | 465 | { |
| 466 | - return (int)$this->id; |
|
| 466 | + return (int) $this->id; |
|
| 467 | 467 | } |
| 468 | 468 | |
| 469 | 469 | /** |
@@ -1060,7 +1060,7 @@ discard block |
||
| 1060 | 1060 | */ |
| 1061 | 1061 | private function createMoney(int $amount = 0) : ?Money |
| 1062 | 1062 | { |
| 1063 | - return DandomainFoundation\createMoney((string)$this->currencyCode, $amount); |
|
| 1063 | + return DandomainFoundation\createMoney((string) $this->currencyCode, $amount); |
|
| 1064 | 1064 | } |
| 1065 | 1065 | |
| 1066 | 1066 | /** |
@@ -1071,6 +1071,6 @@ discard block |
||
| 1071 | 1071 | */ |
| 1072 | 1072 | private function createMoneyFromFloat($amount = 0.0) : ?Money |
| 1073 | 1073 | { |
| 1074 | - return DandomainFoundation\createMoneyFromFloat((string)$this->currencyCode, $amount); |
|
| 1074 | + return DandomainFoundation\createMoneyFromFloat((string) $this->currencyCode, $amount); |
|
| 1075 | 1075 | } |
| 1076 | 1076 | } |