Completed
Push — master ( d19d30...257f70 )
by Joachim
13:38
created
src/Entity/Site.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
      */
270 270
     public function getId(): int
271 271
     {
272
-        return (int)$this->id;
272
+        return (int) $this->id;
273 273
     }
274 274
 
275 275
     /**
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
      */
288 288
     public function getExternalId(): int
289 289
     {
290
-        return (int)$this->externalId;
290
+        return (int) $this->externalId;
291 291
     }
292 292
 
293 293
     /**
Please login to merge, or discard this patch.
src/Entity/ProductType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
      */
270 270
     public function getId(): int
271 271
     {
272
-        return (int)$this->id;
272
+        return (int) $this->id;
273 273
     }
274 274
 
275 275
     /**
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
      */
288 288
     public function getExternalId(): int
289 289
     {
290
-        return (int)$this->externalId;
290
+        return (int) $this->externalId;
291 291
     }
292 292
 
293 293
     /**
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/Segment.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     public function getId(): int
69 69
     {
70
-        return (int)$this->id;
70
+        return (int) $this->id;
71 71
     }
72 72
 
73 73
     /**
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     public function getExternalId(): string
87 87
     {
88
-        return (string)$this->externalId;
88
+        return (string) $this->externalId;
89 89
     }
90 90
 
91 91
     /**
Please login to merge, or discard this patch.
src/Entity/State.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
     public function __toString()
59 59
     {
60
-        return (string)$this->name;
60
+        return (string) $this->name;
61 61
     }
62 62
 
63 63
     /**
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function getId(): int
67 67
     {
68
-        return (int)$this->id;
68
+        return (int) $this->id;
69 69
     }
70 70
 
71 71
     /**
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function getExternalId(): int
85 85
     {
86
-        return (int)$this->externalId;
86
+        return (int) $this->externalId;
87 87
     }
88 88
 
89 89
     /**
Please login to merge, or discard this patch.
src/Entity/ShippingMethod.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
     public function __toString()
64 64
     {
65
-        return (string)$this->name;
65
+        return (string) $this->name;
66 66
     }
67 67
 
68 68
     /**
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     public function getId(): int
72 72
     {
73
-        return (int)$this->id;
73
+        return (int) $this->id;
74 74
     }
75 75
 
76 76
     /**
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      */
89 89
     public function getExternalId(): int
90 90
     {
91
-        return (int)$this->externalId;
91
+        return (int) $this->externalId;
92 92
     }
93 93
 
94 94
     /**
Please login to merge, or discard this patch.
src/Entity/Product.php 1 patch
Spacing   +9 added lines, -9 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
     /**
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
             ->maxLength(191, 'The number must have a max length of 191');
418 418
         Assert::thatNullOr($this->externalId)->integer('The external id can only be null or an integer', 'externalId');
419 419
 
420
-        if(is_null($this->externalId)) {
420
+        if (is_null($this->externalId)) {
421 421
             Assert::that($this->isDeleted())->true('The external id can only be null if the product is marked as deleted', 'externalId');
422 422
         }
423 423
     }
@@ -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
     }
@@ -566,11 +566,11 @@  discard block
 block discarded – undo
566 566
 
567 567
     public function hasChild($product) : bool
568 568
     {
569
-        if($product instanceof ProductInterface) {
569
+        if ($product instanceof ProductInterface) {
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.
src/Entity/Manufacturer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
     public function __toString()
72 72
     {
73
-        return (string)$this->name;
73
+        return (string) $this->name;
74 74
     }
75 75
 
76 76
     /**
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      */
79 79
     public function getId(): int
80 80
     {
81
-        return (int)$this->id;
81
+        return (int) $this->id;
82 82
     }
83 83
 
84 84
     /**
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      */
97 97
     public function getExternalId(): string
98 98
     {
99
-        return (string)$this->externalId;
99
+        return (string) $this->externalId;
100 100
     }
101 101
 
102 102
     /**
Please login to merge, or discard this patch.
src/Entity/PaymentMethod.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
     public function __toString()
64 64
     {
65
-        return (string)$this->name;
65
+        return (string) $this->name;
66 66
     }
67 67
 
68 68
     /**
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     public function getId(): int
72 72
     {
73
-        return (int)$this->id;
73
+        return (int) $this->id;
74 74
     }
75 75
 
76 76
     /**
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      */
89 89
     public function getExternalId(): int
90 90
     {
91
-        return (int)$this->externalId;
91
+        return (int) $this->externalId;
92 92
     }
93 93
 
94 94
     /**
Please login to merge, or discard this patch.