Passed
Push — master ( 7100c6...40ddb0 )
by Joachim
07:08
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/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
@@ -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
@@ -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/QueueItem.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     public function getId(): int
97 97
     {
98
-        return (int)$this->id;
98
+        return (int) $this->id;
99 99
     }
100 100
 
101 101
     /**
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     public function getIdentifier(): string
115 115
     {
116
-        return (string)$this->identifier;
116
+        return (string) $this->identifier;
117 117
     }
118 118
 
119 119
     /**
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      */
132 132
     public function getType(): string
133 133
     {
134
-        return (string)$this->type;
134
+        return (string) $this->type;
135 135
     }
136 136
 
137 137
     /**
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
      */
150 150
     public function getStatus(): string
151 151
     {
152
-        return (string)$this->status;
152
+        return (string) $this->status;
153 153
     }
154 154
 
155 155
     /**
Please login to merge, or discard this patch.