@@ -408,7 +408,7 @@ discard block |
||
| 408 | 408 | $paymentMethod = $this->getPaymentMethod(); |
| 409 | 409 | if (!$paymentMethod) { |
| 410 | 410 | $paymentMethod = new PaymentMethod(); |
| 411 | - $paymentMethod->populateFromApiResponse($data['paymentInfo'], (string)$data['currencyCode']); |
|
| 411 | + $paymentMethod->populateFromApiResponse($data['paymentInfo'], (string) $data['currencyCode']); |
|
| 412 | 412 | } |
| 413 | 413 | $this->setPaymentMethod($paymentMethod); |
| 414 | 414 | |
@@ -416,7 +416,7 @@ discard block |
||
| 416 | 416 | $shippingMethod = $this->getShippingMethod(); |
| 417 | 417 | if (!$shippingMethod) { |
| 418 | 418 | $shippingMethod = new ShippingMethod(); |
| 419 | - $shippingMethod->populateFromApiResponse($data['shippingInfo'], (string)$data['currencyCode']); |
|
| 419 | + $shippingMethod->populateFromApiResponse($data['shippingInfo'], (string) $data['currencyCode']); |
|
| 420 | 420 | } |
| 421 | 421 | $this->setShippingMethod($shippingMethod); |
| 422 | 422 | |
@@ -447,7 +447,7 @@ discard block |
||
| 447 | 447 | */ |
| 448 | 448 | public function addOrderLine(OrderLineInterface $orderLine) : OrderInterface |
| 449 | 449 | { |
| 450 | - if(!$this->hasOrderLine($orderLine)) { |
|
| 450 | + if (!$this->hasOrderLine($orderLine)) { |
|
| 451 | 451 | $this->orderLines->add($orderLine); |
| 452 | 452 | $orderLine->setOrder($this); |
| 453 | 453 | } |
@@ -461,7 +461,7 @@ discard block |
||
| 461 | 461 | */ |
| 462 | 462 | public function hasOrderLine($orderLine) : bool |
| 463 | 463 | { |
| 464 | - if($orderLine instanceof OrderLineInterface) { |
|
| 464 | + if ($orderLine instanceof OrderLineInterface) { |
|
| 465 | 465 | $orderLine = $orderLine->getExternalId(); |
| 466 | 466 | } |
| 467 | 467 | |
@@ -493,7 +493,7 @@ discard block |
||
| 493 | 493 | */ |
| 494 | 494 | public function getTotalPrice() : ?Money |
| 495 | 495 | { |
| 496 | - return $this->createMoney((int)$this->totalPrice); |
|
| 496 | + return $this->createMoney((int) $this->totalPrice); |
|
| 497 | 497 | } |
| 498 | 498 | |
| 499 | 499 | /** |
@@ -512,7 +512,7 @@ discard block |
||
| 512 | 512 | */ |
| 513 | 513 | public function getSalesDiscount() : ?Money |
| 514 | 514 | { |
| 515 | - return $this->createMoney((int)$this->salesDiscount); |
|
| 515 | + return $this->createMoney((int) $this->salesDiscount); |
|
| 516 | 516 | } |
| 517 | 517 | |
| 518 | 518 | /** |
@@ -531,7 +531,7 @@ discard block |
||
| 531 | 531 | */ |
| 532 | 532 | public function getGiftCertificateAmount() : ?Money |
| 533 | 533 | { |
| 534 | - return $this->createMoney((int)$this->giftCertificateAmount); |
|
| 534 | + return $this->createMoney((int) $this->giftCertificateAmount); |
|
| 535 | 535 | } |
| 536 | 536 | |
| 537 | 537 | /** |
@@ -550,7 +550,7 @@ discard block |
||
| 550 | 550 | */ |
| 551 | 551 | public function getShippingMethodFee() : ?Money |
| 552 | 552 | { |
| 553 | - return $this->createMoney((int)$this->shippingMethodFee); |
|
| 553 | + return $this->createMoney((int) $this->shippingMethodFee); |
|
| 554 | 554 | } |
| 555 | 555 | |
| 556 | 556 | /** |
@@ -569,7 +569,7 @@ discard block |
||
| 569 | 569 | */ |
| 570 | 570 | public function getPaymentMethodFee() : ?Money |
| 571 | 571 | { |
| 572 | - return $this->createMoney((int)$this->paymentMethodFee); |
|
| 572 | + return $this->createMoney((int) $this->paymentMethodFee); |
|
| 573 | 573 | } |
| 574 | 574 | |
| 575 | 575 | /** |
@@ -588,7 +588,7 @@ discard block |
||
| 588 | 588 | */ |
| 589 | 589 | public function getId(): int |
| 590 | 590 | { |
| 591 | - return (int)$this->id; |
|
| 591 | + return (int) $this->id; |
|
| 592 | 592 | } |
| 593 | 593 | |
| 594 | 594 | /** |
@@ -1185,7 +1185,7 @@ discard block |
||
| 1185 | 1185 | */ |
| 1186 | 1186 | private function createMoney(int $amount = 0) : ?Money |
| 1187 | 1187 | { |
| 1188 | - return DandomainFoundation\createMoney((string)$this->currencyCode, $amount); |
|
| 1188 | + return DandomainFoundation\createMoney((string) $this->currencyCode, $amount); |
|
| 1189 | 1189 | } |
| 1190 | 1190 | |
| 1191 | 1191 | /** |
@@ -1196,6 +1196,6 @@ discard block |
||
| 1196 | 1196 | */ |
| 1197 | 1197 | private function createMoneyFromFloat($amount = 0.0) : ?Money |
| 1198 | 1198 | { |
| 1199 | - return DandomainFoundation\createMoneyFromFloat((string)$this->currencyCode, $amount); |
|
| 1199 | + return DandomainFoundation\createMoneyFromFloat((string) $this->currencyCode, $amount); |
|
| 1200 | 1200 | } |
| 1201 | 1201 | } |