Completed
Push — master ( 74b45c...7e425f )
by Joachim
10:43
created
src/Entity/Order.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
             $paymentMethod = $this->getPaymentMethod();
405 405
             if (!$paymentMethod) {
406 406
                 $paymentMethod = new PaymentMethod();
407
-                $paymentMethod->populateFromApiResponse($data['paymentInfo'], (string)$data['currencyCode']);
407
+                $paymentMethod->populateFromApiResponse($data['paymentInfo'], (string) $data['currencyCode']);
408 408
             }
409 409
             $this->setPaymentMethod($paymentMethod);
410 410
 
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
             $shippingMethod = $this->getShippingMethod();
413 413
             if (!$shippingMethod) {
414 414
                 $shippingMethod = new ShippingMethod();
415
-                $shippingMethod->populateFromApiResponse($data['shippingInfo'], (string)$data['currencyCode']);
415
+                $shippingMethod->populateFromApiResponse($data['shippingInfo'], (string) $data['currencyCode']);
416 416
             }
417 417
             $this->setShippingMethod($shippingMethod);
418 418
 
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
      */
444 444
     public function addOrderLine(OrderLineInterface $orderLine) : OrderInterface
445 445
     {
446
-        if(!$this->hasOrderLine($orderLine)) {
446
+        if (!$this->hasOrderLine($orderLine)) {
447 447
             $this->orderLines->add($orderLine);
448 448
             $orderLine->setOrder($this);
449 449
         }
@@ -472,7 +472,7 @@  discard block
 block discarded – undo
472 472
      */
473 473
     public function getTotalPrice() : ?Money
474 474
     {
475
-        return $this->createMoney((int)$this->totalPrice);
475
+        return $this->createMoney((int) $this->totalPrice);
476 476
     }
477 477
 
478 478
     /**
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
      */
492 492
     public function getSalesDiscount() : ?Money
493 493
     {
494
-        return $this->createMoney((int)$this->salesDiscount);
494
+        return $this->createMoney((int) $this->salesDiscount);
495 495
     }
496 496
 
497 497
     /**
@@ -510,7 +510,7 @@  discard block
 block discarded – undo
510 510
      */
511 511
     public function getGiftCertificateAmount() : ?Money
512 512
     {
513
-        return $this->createMoney((int)$this->giftCertificateAmount);
513
+        return $this->createMoney((int) $this->giftCertificateAmount);
514 514
     }
515 515
 
516 516
     /**
@@ -529,7 +529,7 @@  discard block
 block discarded – undo
529 529
      */
530 530
     public function getShippingMethodFee() : ?Money
531 531
     {
532
-        return $this->createMoney((int)$this->shippingMethodFee);
532
+        return $this->createMoney((int) $this->shippingMethodFee);
533 533
     }
534 534
 
535 535
     /**
@@ -548,7 +548,7 @@  discard block
 block discarded – undo
548 548
      */
549 549
     public function getPaymentMethodFee() : ?Money
550 550
     {
551
-        return $this->createMoney((int)$this->paymentMethodFee);
551
+        return $this->createMoney((int) $this->paymentMethodFee);
552 552
     }
553 553
 
554 554
     /**
@@ -567,7 +567,7 @@  discard block
 block discarded – undo
567 567
      */
568 568
     public function getId(): int
569 569
     {
570
-        return (int)$this->id;
570
+        return (int) $this->id;
571 571
     }
572 572
 
573 573
     /**
@@ -1164,7 +1164,7 @@  discard block
 block discarded – undo
1164 1164
      */
1165 1165
     private function createMoney(int $amount = 0) : ?Money
1166 1166
     {
1167
-        return DandomainFoundation\createMoney((string)$this->currencyCode, $amount);
1167
+        return DandomainFoundation\createMoney((string) $this->currencyCode, $amount);
1168 1168
     }
1169 1169
 
1170 1170
     /**
@@ -1175,6 +1175,6 @@  discard block
 block discarded – undo
1175 1175
      */
1176 1176
     private function createMoneyFromFloat($amount = 0.0) : ?Money
1177 1177
     {
1178
-        return DandomainFoundation\createMoneyFromFloat((string)$this->currencyCode, $amount);
1178
+        return DandomainFoundation\createMoneyFromFloat((string) $this->currencyCode, $amount);
1179 1179
     }
1180 1180
 }
Please login to merge, or discard this patch.