Completed
Push — master ( 13633f...2513f1 )
by Joachim
15:06
created
src/Entity/ProductRelation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
      */
95 95
     public function getId(): int
96 96
     {
97
-        return (int)$this->id;
97
+        return (int) $this->id;
98 98
     }
99 99
 
100 100
     /**
Please login to merge, or discard this patch.
src/Entity/Period.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
      */
95 95
     public function getId(): int
96 96
     {
97
-        return (int)$this->id;
97
+        return (int) $this->id;
98 98
     }
99 99
 
100 100
     /**
Please login to merge, or discard this patch.
src/Entity/Order.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
             $paymentMethod = $this->getPaymentMethod();
404 404
             if (!$paymentMethod) {
405 405
                 $paymentMethod = new PaymentMethod();
406
-                $paymentMethod->populateFromApiResponse($data['paymentInfo'], (string)$data['currencyCode']);
406
+                $paymentMethod->populateFromApiResponse($data['paymentInfo'], (string) $data['currencyCode']);
407 407
             }
408 408
             $this->setPaymentMethod($paymentMethod);
409 409
 
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
             $shippingMethod = $this->getShippingMethod();
412 412
             if (!$shippingMethod) {
413 413
                 $shippingMethod = new ShippingMethod();
414
-                $shippingMethod->populateFromApiResponse($data['shippingInfo'], (string)$data['currencyCode']);
414
+                $shippingMethod->populateFromApiResponse($data['shippingInfo'], (string) $data['currencyCode']);
415 415
             }
416 416
             $this->setShippingMethod($shippingMethod);
417 417
 
@@ -442,7 +442,7 @@  discard block
 block discarded – undo
442 442
      */
443 443
     public function getTotalPrice() : ?Money
444 444
     {
445
-        return $this->createMoney((int)$this->totalPrice);
445
+        return $this->createMoney((int) $this->totalPrice);
446 446
     }
447 447
 
448 448
     /**
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
      */
462 462
     public function getSalesDiscount() : ?Money
463 463
     {
464
-        return $this->createMoney((int)$this->salesDiscount);
464
+        return $this->createMoney((int) $this->salesDiscount);
465 465
     }
466 466
 
467 467
     /**
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
      */
481 481
     public function getGiftCertificateAmount() : ?Money
482 482
     {
483
-        return $this->createMoney((int)$this->giftCertificateAmount);
483
+        return $this->createMoney((int) $this->giftCertificateAmount);
484 484
     }
485 485
 
486 486
     /**
@@ -499,7 +499,7 @@  discard block
 block discarded – undo
499 499
      */
500 500
     public function getShippingMethodFee() : ?Money
501 501
     {
502
-        return $this->createMoney((int)$this->shippingMethodFee);
502
+        return $this->createMoney((int) $this->shippingMethodFee);
503 503
     }
504 504
 
505 505
     /**
@@ -518,7 +518,7 @@  discard block
 block discarded – undo
518 518
      */
519 519
     public function getPaymentMethodFee() : ?Money
520 520
     {
521
-        return $this->createMoney((int)$this->paymentMethodFee);
521
+        return $this->createMoney((int) $this->paymentMethodFee);
522 522
     }
523 523
 
524 524
     /**
@@ -537,7 +537,7 @@  discard block
 block discarded – undo
537 537
      */
538 538
     public function getId(): int
539 539
     {
540
-        return (int)$this->id;
540
+        return (int) $this->id;
541 541
     }
542 542
 
543 543
     /**
@@ -1134,7 +1134,7 @@  discard block
 block discarded – undo
1134 1134
      */
1135 1135
     private function createMoney(int $amount = 0) : ?Money
1136 1136
     {
1137
-        return DandomainFoundation\createMoney((string)$this->currencyCode, $amount);
1137
+        return DandomainFoundation\createMoney((string) $this->currencyCode, $amount);
1138 1138
     }
1139 1139
 
1140 1140
     /**
@@ -1145,6 +1145,6 @@  discard block
 block discarded – undo
1145 1145
      */
1146 1146
     private function createMoneyFromFloat($amount = 0.0) : ?Money
1147 1147
     {
1148
-        return DandomainFoundation\createMoneyFromFloat((string)$this->currencyCode, $amount);
1148
+        return DandomainFoundation\createMoneyFromFloat((string) $this->currencyCode, $amount);
1149 1149
     }
1150 1150
 }
Please login to merge, or discard this patch.
src/Entity/Price.php 1 patch
Spacing   +5 added lines, -5 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
     /**
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
      */
218 218
     public function setSpecialOfferPrice(Money $specialOfferPrice = null)
219 219
     {
220
-        if($specialOfferPrice) {
220
+        if ($specialOfferPrice) {
221 221
             $this->specialOfferPrice = $specialOfferPrice->getAmount();
222 222
             $this->setCurrencyCode($specialOfferPrice->getCurrency()->getCode());
223 223
         } else {
@@ -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
     /**
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
      */
241 241
     public function setUnitPrice(Money $unitPrice = null)
242 242
     {
243
-        if($unitPrice) {
243
+        if ($unitPrice) {
244 244
             $this->unitPrice = $unitPrice->getAmount();
245 245
             $this->setCurrencyCode($unitPrice->getCurrency()->getCode());
246 246
         } else {
Please login to merge, or discard this patch.
src/Entity/Medium.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/ProductTypeFormula.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/Unit.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/Variant.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/VariantGroup.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.