Completed
Push — master ( 99d312...5b5b75 )
by Joachim
07:06
created
src/Entity/OrderLine.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      */
120 120
     public function getId(): int
121 121
     {
122
-        return (int)$this->id;
122
+        return (int) $this->id;
123 123
     }
124 124
 
125 125
     /**
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      */
138 138
     public function getExternalId(): int
139 139
     {
140
-        return (int)$this->externalId;
140
+        return (int) $this->externalId;
141 141
     }
142 142
 
143 143
     /**
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
      */
228 228
     public function getTotalPrice()
229 229
     {
230
-        return DandomainFoundation\createMoney((string)$this->getOrder()->getCurrencyCode(), (int)$this->totalPrice);
230
+        return DandomainFoundation\createMoney((string) $this->getOrder()->getCurrencyCode(), (int) $this->totalPrice);
231 231
     }
232 232
 
233 233
     /**
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
      */
247 247
     public function getUnitPrice()
248 248
     {
249
-        return DandomainFoundation\createMoney((string)$this->getOrder()->getCurrencyCode(), (int)$this->unitPrice);
249
+        return DandomainFoundation\createMoney((string) $this->getOrder()->getCurrencyCode(), (int) $this->unitPrice);
250 250
     }
251 251
 
252 252
     /**
Please login to merge, or discard this patch.
src/Entity/Order.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
             $orderLine = $orderLine->getExternalId();
380 380
         }
381 381
 
382
-        return $this->orderLines->exists(function ($key, OrderLineInterface $element) use ($orderLine) {
382
+        return $this->orderLines->exists(function($key, OrderLineInterface $element) use ($orderLine) {
383 383
             return $element->getExternalId() === $orderLine;
384 384
         });
385 385
     }
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
      */
409 409
     public function getTotalPrice() : ?Money
410 410
     {
411
-        return $this->createMoney((int)$this->totalPrice);
411
+        return $this->createMoney((int) $this->totalPrice);
412 412
     }
413 413
 
414 414
     /**
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
      */
428 428
     public function getSalesDiscount() : ?Money
429 429
     {
430
-        return $this->createMoney((int)$this->salesDiscount);
430
+        return $this->createMoney((int) $this->salesDiscount);
431 431
     }
432 432
 
433 433
     /**
@@ -446,7 +446,7 @@  discard block
 block discarded – undo
446 446
      */
447 447
     public function getGiftCertificateAmount() : ?Money
448 448
     {
449
-        return $this->createMoney((int)$this->giftCertificateAmount);
449
+        return $this->createMoney((int) $this->giftCertificateAmount);
450 450
     }
451 451
 
452 452
     /**
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
      */
466 466
     public function getShippingMethodFee() : ?Money
467 467
     {
468
-        return $this->createMoney((int)$this->shippingMethodFee);
468
+        return $this->createMoney((int) $this->shippingMethodFee);
469 469
     }
470 470
 
471 471
     /**
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
      */
485 485
     public function getPaymentMethodFee() : ?Money
486 486
     {
487
-        return $this->createMoney((int)$this->paymentMethodFee);
487
+        return $this->createMoney((int) $this->paymentMethodFee);
488 488
     }
489 489
 
490 490
     /**
@@ -503,7 +503,7 @@  discard block
 block discarded – undo
503 503
      */
504 504
     public function getId(): int
505 505
     {
506
-        return (int)$this->id;
506
+        return (int) $this->id;
507 507
     }
508 508
 
509 509
     /**
@@ -521,7 +521,7 @@  discard block
 block discarded – undo
521 521
      */
522 522
     public function getExternalId(): int
523 523
     {
524
-        return (int)$this->externalId;
524
+        return (int) $this->externalId;
525 525
     }
526 526
 
527 527
     /**
@@ -1100,6 +1100,6 @@  discard block
 block discarded – undo
1100 1100
      */
1101 1101
     private function createMoney(int $amount = 0) : ?Money
1102 1102
     {
1103
-        return DandomainFoundation\createMoney((string)$this->currencyCode, $amount);
1103
+        return DandomainFoundation\createMoney((string) $this->currencyCode, $amount);
1104 1104
     }
1105 1105
 }
Please login to merge, or discard this patch.
src/Entity/Product.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
 
404 404
     public function __toString()
405 405
     {
406
-        return (string)$this->number;
406
+        return (string) $this->number;
407 407
     }
408 408
 
409 409
     /**
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
 
483 483
     public function hasManufacturer(ManufacturerInterface $manufacturer) : bool
484 484
     {
485
-        return $this->manufacturers->exists(function ($key, ManufacturerInterface $element) use ($manufacturer) {
485
+        return $this->manufacturers->exists(function($key, ManufacturerInterface $element) use ($manufacturer) {
486 486
             return $element->getExternalId() === $manufacturer->getExternalId();
487 487
         });
488 488
     }
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
             $variantGroup = $variantGroup->getExternalId();
508 508
         }
509 509
 
510
-        return $this->variantGroups->exists(function ($key, VariantGroupInterface $element) use ($variantGroup) {
510
+        return $this->variantGroups->exists(function($key, VariantGroupInterface $element) use ($variantGroup) {
511 511
             return $element->getExternalId() === $variantGroup;
512 512
         });
513 513
     }
@@ -570,7 +570,7 @@  discard block
 block discarded – undo
570 570
             $product = $product->getExternalId();
571 571
         }
572 572
 
573
-        return $this->children->exists(function ($key, ProductInterface $element) use ($product) {
573
+        return $this->children->exists(function($key, ProductInterface $element) use ($product) {
574 574
             return $element->getExternalId() === $product;
575 575
         });
576 576
     }
@@ -583,7 +583,7 @@  discard block
 block discarded – undo
583 583
      */
584 584
     public function getId(): int
585 585
     {
586
-        return (int)$this->id;
586
+        return (int) $this->id;
587 587
     }
588 588
 
589 589
     /**
@@ -601,7 +601,7 @@  discard block
 block discarded – undo
601 601
      */
602 602
     public function getExternalId(): int
603 603
     {
604
-        return (int)$this->externalId;
604
+        return (int) $this->externalId;
605 605
     }
606 606
 
607 607
     /**
@@ -997,7 +997,7 @@  discard block
 block discarded – undo
997 997
      */
998 998
     public function getNumber()
999 999
     {
1000
-        return (string)$this->number;
1000
+        return (string) $this->number;
1001 1001
     }
1002 1002
 
1003 1003
     /**
Please login to merge, or discard this patch.