Completed
Push — master ( 97527d...5adc58 )
by Joachim
20:44 queued 05:41
created
src/Entity/Product.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
 
455 455
     public function hasManufacturer(ManufacturerInterface $manufacturer) : bool
456 456
     {
457
-        return $this->manufacturers->exists(function ($key, ManufacturerInterface $element) use ($manufacturer) {
457
+        return $this->manufacturers->exists(function($key, ManufacturerInterface $element) use ($manufacturer) {
458 458
             return $element->getExternalId() === $manufacturer->getExternalId();
459 459
         });
460 460
     }
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
             $variantGroup = $variantGroup->getExternalId();
480 480
         }
481 481
 
482
-        return $this->variantGroups->exists(function ($key, VariantGroupInterface $element) use ($variantGroup) {
482
+        return $this->variantGroups->exists(function($key, VariantGroupInterface $element) use ($variantGroup) {
483 483
             return $element->getExternalId() === $variantGroup;
484 484
         });
485 485
     }
@@ -538,11 +538,11 @@  discard block
 block discarded – undo
538 538
 
539 539
     public function hasChild($product) : bool
540 540
     {
541
-        if($product instanceof ProductInterface) {
541
+        if ($product instanceof ProductInterface) {
542 542
             $product = $product->getExternalId();
543 543
         }
544 544
 
545
-        return $this->children->exists(function ($key, ProductInterface $element) use ($product) {
545
+        return $this->children->exists(function($key, ProductInterface $element) use ($product) {
546 546
             return $element->getExternalId() === $product;
547 547
         });
548 548
     }
@@ -555,7 +555,7 @@  discard block
 block discarded – undo
555 555
      */
556 556
     public function getId(): int
557 557
     {
558
-        return (int)$this->id;
558
+        return (int) $this->id;
559 559
     }
560 560
 
561 561
     /**
@@ -573,7 +573,7 @@  discard block
 block discarded – undo
573 573
      */
574 574
     public function getExternalId(): int
575 575
     {
576
-        return (int)$this->externalId;
576
+        return (int) $this->externalId;
577 577
     }
578 578
 
579 579
     /**
Please login to merge, or discard this patch.