Completed
Push — master ( c12f56...86ecc4 )
by Joachim
13:32
created
src/Entity/CategoryTranslation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
      */
134 134
     public function getExternalId(): int
135 135
     {
136
-        return (int)$this->externalId;
136
+        return (int) $this->externalId;
137 137
     }
138 138
 
139 139
     /**
Please login to merge, or discard this patch.
src/Entity/Price.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      */
101 101
     public function getId(): int
102 102
     {
103
-        return (int)$this->id;
103
+        return (int) $this->id;
104 104
     }
105 105
 
106 106
     /**
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
      */
209 209
     public function getSpecialOfferPrice()
210 210
     {
211
-        return DandomainFoundation\createMoney((string)$this->currencyCode, (int)$this->specialOfferPrice);
211
+        return DandomainFoundation\createMoney((string) $this->currencyCode, (int) $this->specialOfferPrice);
212 212
     }
213 213
 
214 214
     /**
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
      */
232 232
     public function getUnitPrice()
233 233
     {
234
-        return DandomainFoundation\createMoney((string)$this->currencyCode, (int)$this->unitPrice);
234
+        return DandomainFoundation\createMoney((string) $this->currencyCode, (int) $this->unitPrice);
235 235
     }
236 236
 
237 237
     /**
Please login to merge, or discard this patch.
src/Entity/Tag.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
             $tagValue = $tagValue->getExternalId();
78 78
         }
79 79
 
80
-        return $this->tagValues->exists(function ($key, TagValueInterface $element) use ($tagValue) {
80
+        return $this->tagValues->exists(function($key, TagValueInterface $element) use ($tagValue) {
81 81
             return $element->getExternalId() === $tagValue;
82 82
         });
83 83
     }
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      */
105 105
     public function getId(): int
106 106
     {
107
-        return (int)$this->id;
107
+        return (int) $this->id;
108 108
     }
109 109
 
110 110
     /**
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     public function getExternalId(): int
124 124
     {
125
-        return (int)$this->externalId;
125
+        return (int) $this->externalId;
126 126
     }
127 127
 
128 128
     /**
Please login to merge, or discard this patch.
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/State.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/Product.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
             ->maxLength(191, 'The number must have a max length of 191');
413 413
         Assert::thatNullOr($this->externalId)->integer('The external id can only be null or an integer', 'externalId');
414 414
 
415
-        if(is_null($this->externalId)) {
415
+        if (is_null($this->externalId)) {
416 416
             Assert::that($this->isDeleted())->true('The external id can only be null if the product is marked as deleted', 'externalId');
417 417
         }
418 418
     }
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
 
478 478
     public function hasManufacturer(ManufacturerInterface $manufacturer) : bool
479 479
     {
480
-        return $this->manufacturers->exists(function ($key, ManufacturerInterface $element) use ($manufacturer) {
480
+        return $this->manufacturers->exists(function($key, ManufacturerInterface $element) use ($manufacturer) {
481 481
             return $element->getExternalId() === $manufacturer->getExternalId();
482 482
         });
483 483
     }
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
             $variantGroup = $variantGroup->getExternalId();
503 503
         }
504 504
 
505
-        return $this->variantGroups->exists(function ($key, VariantGroupInterface $element) use ($variantGroup) {
505
+        return $this->variantGroups->exists(function($key, VariantGroupInterface $element) use ($variantGroup) {
506 506
             return $element->getExternalId() === $variantGroup;
507 507
         });
508 508
     }
@@ -561,11 +561,11 @@  discard block
 block discarded – undo
561 561
 
562 562
     public function hasChild($product) : bool
563 563
     {
564
-        if($product instanceof ProductInterface) {
564
+        if ($product instanceof ProductInterface) {
565 565
             $product = $product->getExternalId();
566 566
         }
567 567
 
568
-        return $this->children->exists(function ($key, ProductInterface $element) use ($product) {
568
+        return $this->children->exists(function($key, ProductInterface $element) use ($product) {
569 569
             return $element->getExternalId() === $product;
570 570
         });
571 571
     }
@@ -578,7 +578,7 @@  discard block
 block discarded – undo
578 578
      */
579 579
     public function getId(): int
580 580
     {
581
-        return (int)$this->id;
581
+        return (int) $this->id;
582 582
     }
583 583
 
584 584
     /**
@@ -596,7 +596,7 @@  discard block
 block discarded – undo
596 596
      */
597 597
     public function getExternalId(): int
598 598
     {
599
-        return (int)$this->externalId;
599
+        return (int) $this->externalId;
600 600
     }
601 601
 
602 602
     /**
@@ -992,7 +992,7 @@  discard block
 block discarded – undo
992 992
      */
993 993
     public function getNumber()
994 994
     {
995
-        return (string)$this->number;
995
+        return (string) $this->number;
996 996
     }
997 997
 
998 998
     /**
Please login to merge, or discard this patch.