Completed
Push — master ( 6368d5...c9f46d )
by Joachim
13:28
created
src/Entity/Category.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
             $category = $category->getExternalId();
195 195
         }
196 196
 
197
-        return $this->parentCategories->exists(function ($key, CategoryInterface $element) use ($category) {
197
+        return $this->parentCategories->exists(function($key, CategoryInterface $element) use ($category) {
198 198
             return $element->getExternalId() === $category;
199 199
         });
200 200
     }
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
      */
215 215
     public function getId(): int
216 216
     {
217
-        return (int)$this->id;
217
+        return (int) $this->id;
218 218
     }
219 219
 
220 220
     /**
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
      */
233 233
     public function getExternalId(): int
234 234
     {
235
-        return (int)$this->externalId;
235
+        return (int) $this->externalId;
236 236
     }
237 237
 
238 238
     /**
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
      */
251 251
     public function getNumber(): string
252 252
     {
253
-        return (string)$this->number;
253
+        return (string) $this->number;
254 254
     }
255 255
 
256 256
     /**
Please login to merge, or discard this patch.
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/Order.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
             $orderLine = $orderLine->getExternalId();
341 341
         }
342 342
 
343
-        return $this->orderLines->exists(function ($key, OrderLineInterface $element) use ($orderLine) {
343
+        return $this->orderLines->exists(function($key, OrderLineInterface $element) use ($orderLine) {
344 344
             return $element->getExternalId() === $orderLine;
345 345
         });
346 346
     }
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
      */
368 368
     public function getTotalPrice() : ?Money
369 369
     {
370
-        return $this->createMoney((int)$this->totalPrice);
370
+        return $this->createMoney((int) $this->totalPrice);
371 371
     }
372 372
 
373 373
     /**
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
      */
387 387
     public function getSalesDiscount() : ?Money
388 388
     {
389
-        return $this->createMoney((int)$this->salesDiscount);
389
+        return $this->createMoney((int) $this->salesDiscount);
390 390
     }
391 391
 
392 392
     /**
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
      */
406 406
     public function getGiftCertificateAmount() : ?Money
407 407
     {
408
-        return $this->createMoney((int)$this->giftCertificateAmount);
408
+        return $this->createMoney((int) $this->giftCertificateAmount);
409 409
     }
410 410
 
411 411
     /**
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
      */
425 425
     public function getShippingMethodFee() : ?Money
426 426
     {
427
-        return $this->createMoney((int)$this->shippingMethodFee);
427
+        return $this->createMoney((int) $this->shippingMethodFee);
428 428
     }
429 429
 
430 430
     /**
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
      */
444 444
     public function getPaymentMethodFee() : ?Money
445 445
     {
446
-        return $this->createMoney((int)$this->paymentMethodFee);
446
+        return $this->createMoney((int) $this->paymentMethodFee);
447 447
     }
448 448
 
449 449
     /**
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
      */
463 463
     public function getId(): int
464 464
     {
465
-        return (int)$this->id;
465
+        return (int) $this->id;
466 466
     }
467 467
 
468 468
     /**
@@ -1059,6 +1059,6 @@  discard block
 block discarded – undo
1059 1059
      */
1060 1060
     private function createMoney(int $amount = 0) : ?Money
1061 1061
     {
1062
-        return DandomainFoundation\createMoney((string)$this->currencyCode, $amount);
1062
+        return DandomainFoundation\createMoney((string) $this->currencyCode, $amount);
1063 1063
     }
1064 1064
 }
Please login to merge, or discard this patch.
src/Entity/Product.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
 
412 412
     public function hasManufacturer(ManufacturerInterface $manufacturer) : bool
413 413
     {
414
-        return $this->manufacturers->exists(function ($key, ManufacturerInterface $element) use ($manufacturer) {
414
+        return $this->manufacturers->exists(function($key, ManufacturerInterface $element) use ($manufacturer) {
415 415
             return $element->getExternalId() === $manufacturer->getExternalId();
416 416
         });
417 417
     }
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
      */
467 467
     public function getId(): int
468 468
     {
469
-        return (int)$this->id;
469
+        return (int) $this->id;
470 470
     }
471 471
 
472 472
     /**
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
      */
485 485
     public function getExternalId(): int
486 486
     {
487
-        return (int)$this->externalId;
487
+        return (int) $this->externalId;
488 488
     }
489 489
 
490 490
     /**
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.