@@ -483,7 +483,7 @@ discard block |
||
| 483 | 483 | |
| 484 | 484 | public function hasCategory(CategoryInterface $category): bool |
| 485 | 485 | { |
| 486 | - return $this->categories->exists(function ($key, CategoryInterface $element) use ($category) { |
|
| 486 | + return $this->categories->exists(function($key, CategoryInterface $element) use ($category) { |
|
| 487 | 487 | return $element->getExternalId() === $category->getExternalId(); |
| 488 | 488 | }); |
| 489 | 489 | } |
@@ -512,7 +512,7 @@ discard block |
||
| 512 | 512 | |
| 513 | 513 | public function hasManufacturer(ManufacturerInterface $manufacturer): bool |
| 514 | 514 | { |
| 515 | - return $this->manufacturers->exists(function ($key, ManufacturerInterface $element) use ($manufacturer) { |
|
| 515 | + return $this->manufacturers->exists(function($key, ManufacturerInterface $element) use ($manufacturer) { |
|
| 516 | 516 | return $element->getExternalId() === $manufacturer->getExternalId(); |
| 517 | 517 | }); |
| 518 | 518 | } |
@@ -550,7 +550,7 @@ discard block |
||
| 550 | 550 | $variantGroup = $variantGroup->getExternalId(); |
| 551 | 551 | } |
| 552 | 552 | |
| 553 | - return $this->variantGroups->exists(function ($key, VariantGroupInterface $element) use ($variantGroup) { |
|
| 553 | + return $this->variantGroups->exists(function($key, VariantGroupInterface $element) use ($variantGroup) { |
|
| 554 | 554 | return $element->getExternalId() === $variantGroup; |
| 555 | 555 | }); |
| 556 | 556 | } |
@@ -691,7 +691,7 @@ discard block |
||
| 691 | 691 | $product = $product->getExternalId(); |
| 692 | 692 | } |
| 693 | 693 | |
| 694 | - return $this->children->exists(function ($key, ProductInterface $element) use ($product) { |
|
| 694 | + return $this->children->exists(function($key, ProductInterface $element) use ($product) { |
|
| 695 | 695 | return $element->getExternalId() === $product; |
| 696 | 696 | }); |
| 697 | 697 | } |