Passed
Push — master ( 8a0be3...c80938 )
by Joachim
11:19
created
src/Entity/PaymentMethod.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/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/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   +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/Product.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -377,11 +377,11 @@  discard block
 block discarded – undo
377 377
 
378 378
     public function hydrate(array $data, bool $useConversions = false, $scalarsOnly = true)
379 379
     {
380
-        if($data['created']) {
380
+        if ($data['created']) {
381 381
             $data['created'] = $this->getDateTimeFromJson($data['created']);
382 382
         }
383 383
 
384
-        if($data['updated']) {
384
+        if ($data['updated']) {
385 385
             $data['updated'] = $this->getDateTimeFromJson($data['updated']);
386 386
         }
387 387
 
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
 
436 436
     public function hasManufacturer(ManufacturerInterface $manufacturer) : bool
437 437
     {
438
-        return $this->manufacturers->exists(function ($key, ManufacturerInterface $element) use ($manufacturer) {
438
+        return $this->manufacturers->exists(function($key, ManufacturerInterface $element) use ($manufacturer) {
439 439
             return $element->getExternalId() === $manufacturer->getExternalId();
440 440
         });
441 441
     }
@@ -460,7 +460,7 @@  discard block
 block discarded – undo
460 460
             $variantGroup = $variantGroup->getExternalId();
461 461
         }
462 462
 
463
-        return $this->variantGroups->exists(function ($key, VariantGroupInterface $element) use ($variantGroup) {
463
+        return $this->variantGroups->exists(function($key, VariantGroupInterface $element) use ($variantGroup) {
464 464
             return $element->getExternalId() === $variantGroup;
465 465
         });
466 466
     }
@@ -509,7 +509,7 @@  discard block
 block discarded – undo
509 509
      */
510 510
     public function getId(): int
511 511
     {
512
-        return (int)$this->id;
512
+        return (int) $this->id;
513 513
     }
514 514
 
515 515
     /**
@@ -527,7 +527,7 @@  discard block
 block discarded – undo
527 527
      */
528 528
     public function getExternalId(): int
529 529
     {
530
-        return (int)$this->externalId;
530
+        return (int) $this->externalId;
531 531
     }
532 532
 
533 533
     /**
Please login to merge, or discard this patch.
src/Entity/ProductTranslation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -296,11 +296,11 @@
 block discarded – undo
296 296
 
297 297
     public function hydrate(array $data, bool $useConversions = false, $scalarsOnly = true)
298 298
     {
299
-        if($data['expectedDeliveryTime']) {
299
+        if ($data['expectedDeliveryTime']) {
300 300
             $data['expectedDeliveryTime'] = $this->getDateTimeFromJson($data['expectedDeliveryTime']);
301 301
         }
302 302
 
303
-        if($data['expectedDeliveryTimeNotInStock']) {
303
+        if ($data['expectedDeliveryTimeNotInStock']) {
304 304
             $data['expectedDeliveryTimeNotInStock'] = $this->getDateTimeFromJson($data['expectedDeliveryTimeNotInStock']);
305 305
         }
306 306
 
Please login to merge, or discard this patch.