Passed
Push — master ( 476c16...acf51f )
by Joachim
04:15
created
src/Entity/Product.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
      */
485 485
     public function updateCategories(array $categories): void
486 486
     {
487
-        if(empty($categories)) {
487
+        if (empty($categories)) {
488 488
             $this->clearCategories();
489 489
             return;
490 490
         }
@@ -531,7 +531,7 @@  discard block
 block discarded – undo
531 531
     public function findCategory(CategoryInterface $searchCategory): ?CategoryInterface
532 532
     {
533 533
         foreach ($this->categories as $category) {
534
-            if($category->getExternalId() === $searchCategory->getExternalId()) {
534
+            if ($category->getExternalId() === $searchCategory->getExternalId()) {
535 535
                 return $category;
536 536
             }
537 537
         }
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
 
559 559
     public function hasManufacturer(ManufacturerInterface $manufacturer): bool
560 560
     {
561
-        return $this->manufacturers->exists(function ($key, ManufacturerInterface $element) use ($manufacturer) {
561
+        return $this->manufacturers->exists(function($key, ManufacturerInterface $element) use ($manufacturer) {
562 562
             return $element->getExternalId() === $manufacturer->getExternalId();
563 563
         });
564 564
     }
@@ -596,7 +596,7 @@  discard block
 block discarded – undo
596 596
             $variantGroup = $variantGroup->getExternalId();
597 597
         }
598 598
 
599
-        return $this->variantGroups->exists(function ($key, VariantGroupInterface $element) use ($variantGroup) {
599
+        return $this->variantGroups->exists(function($key, VariantGroupInterface $element) use ($variantGroup) {
600 600
             return $element->getExternalId() === $variantGroup;
601 601
         });
602 602
     }
@@ -737,7 +737,7 @@  discard block
 block discarded – undo
737 737
             $product = $product->getExternalId();
738 738
         }
739 739
 
740
-        return $this->children->exists(function ($key, ProductInterface $element) use ($product) {
740
+        return $this->children->exists(function($key, ProductInterface $element) use ($product) {
741 741
             return $element->getExternalId() === $product;
742 742
         });
743 743
     }
Please login to merge, or discard this patch.