@@ -426,7 +426,7 @@ discard block |
||
426 | 426 | $orderLine = $orderLine->getExternalId(); |
427 | 427 | } |
428 | 428 | |
429 | - return $this->orderLines->exists(function ($key, OrderLineInterface $element) use ($orderLine) { |
|
429 | + return $this->orderLines->exists(function($key, OrderLineInterface $element) use ($orderLine) { |
|
430 | 430 | return $element->getExternalId() === $orderLine; |
431 | 431 | }); |
432 | 432 | } |
@@ -455,7 +455,7 @@ discard block |
||
455 | 455 | */ |
456 | 456 | public function getTotalPrice() : ?Money |
457 | 457 | { |
458 | - return $this->createMoney((int)$this->totalPrice); |
|
458 | + return $this->createMoney((int) $this->totalPrice); |
|
459 | 459 | } |
460 | 460 | |
461 | 461 | /** |
@@ -474,7 +474,7 @@ discard block |
||
474 | 474 | */ |
475 | 475 | public function getSalesDiscount() : ?Money |
476 | 476 | { |
477 | - return $this->createMoney((int)$this->salesDiscount); |
|
477 | + return $this->createMoney((int) $this->salesDiscount); |
|
478 | 478 | } |
479 | 479 | |
480 | 480 | /** |
@@ -493,7 +493,7 @@ discard block |
||
493 | 493 | */ |
494 | 494 | public function getGiftCertificateAmount() : ?Money |
495 | 495 | { |
496 | - return $this->createMoney((int)$this->giftCertificateAmount); |
|
496 | + return $this->createMoney((int) $this->giftCertificateAmount); |
|
497 | 497 | } |
498 | 498 | |
499 | 499 | /** |
@@ -512,7 +512,7 @@ discard block |
||
512 | 512 | */ |
513 | 513 | public function getShippingMethodFee() : ?Money |
514 | 514 | { |
515 | - return $this->createMoney((int)$this->shippingMethodFee); |
|
515 | + return $this->createMoney((int) $this->shippingMethodFee); |
|
516 | 516 | } |
517 | 517 | |
518 | 518 | /** |
@@ -531,7 +531,7 @@ discard block |
||
531 | 531 | */ |
532 | 532 | public function getPaymentMethodFee() : ?Money |
533 | 533 | { |
534 | - return $this->createMoney((int)$this->paymentMethodFee); |
|
534 | + return $this->createMoney((int) $this->paymentMethodFee); |
|
535 | 535 | } |
536 | 536 | |
537 | 537 | /** |
@@ -550,7 +550,7 @@ discard block |
||
550 | 550 | */ |
551 | 551 | public function getId(): int |
552 | 552 | { |
553 | - return (int)$this->id; |
|
553 | + return (int) $this->id; |
|
554 | 554 | } |
555 | 555 | |
556 | 556 | /** |
@@ -568,7 +568,7 @@ discard block |
||
568 | 568 | */ |
569 | 569 | public function getExternalId(): int |
570 | 570 | { |
571 | - return (int)$this->externalId; |
|
571 | + return (int) $this->externalId; |
|
572 | 572 | } |
573 | 573 | |
574 | 574 | /** |
@@ -1147,7 +1147,7 @@ discard block |
||
1147 | 1147 | */ |
1148 | 1148 | private function createMoney(int $amount = 0) : ?Money |
1149 | 1149 | { |
1150 | - if(!$this->currency) { |
|
1150 | + if (!$this->currency) { |
|
1151 | 1151 | return null; |
1152 | 1152 | } |
1153 | 1153 |