@@ -523,7 +523,7 @@ discard block |
||
523 | 523 | public function findCategory(CategoryInterface $searchCategory): ?CategoryInterface |
524 | 524 | { |
525 | 525 | foreach ($this->categories as $category) { |
526 | - if($category->getNumber() === $searchCategory->getNumber()) { |
|
526 | + if ($category->getNumber() === $searchCategory->getNumber()) { |
|
527 | 527 | return $category; |
528 | 528 | } |
529 | 529 | } |
@@ -550,7 +550,7 @@ discard block |
||
550 | 550 | |
551 | 551 | public function hasManufacturer(ManufacturerInterface $manufacturer): bool |
552 | 552 | { |
553 | - return $this->manufacturers->exists(function ($key, ManufacturerInterface $element) use ($manufacturer) { |
|
553 | + return $this->manufacturers->exists(function($key, ManufacturerInterface $element) use ($manufacturer) { |
|
554 | 554 | return $element->getExternalId() === $manufacturer->getExternalId(); |
555 | 555 | }); |
556 | 556 | } |
@@ -588,7 +588,7 @@ discard block |
||
588 | 588 | $variantGroup = $variantGroup->getExternalId(); |
589 | 589 | } |
590 | 590 | |
591 | - return $this->variantGroups->exists(function ($key, VariantGroupInterface $element) use ($variantGroup) { |
|
591 | + return $this->variantGroups->exists(function($key, VariantGroupInterface $element) use ($variantGroup) { |
|
592 | 592 | return $element->getExternalId() === $variantGroup; |
593 | 593 | }); |
594 | 594 | } |
@@ -729,7 +729,7 @@ discard block |
||
729 | 729 | $product = $product->getExternalId(); |
730 | 730 | } |
731 | 731 | |
732 | - return $this->children->exists(function ($key, ProductInterface $element) use ($product) { |
|
732 | + return $this->children->exists(function($key, ProductInterface $element) use ($product) { |
|
733 | 733 | return $element->getExternalId() === $product; |
734 | 734 | }); |
735 | 735 | } |