@@ -428,7 +428,7 @@ |
||
| 428 | 428 | $orderLine = $orderLine->getExternalId(); |
| 429 | 429 | } |
| 430 | 430 | |
| 431 | - return $this->orderLines->exists(function ($key, OrderLineInterface $element) use ($orderLine) { |
|
| 431 | + return $this->orderLines->exists(function($key, OrderLineInterface $element) use ($orderLine) { |
|
| 432 | 432 | return $element->getExternalId() === $orderLine; |
| 433 | 433 | }); |
| 434 | 434 | } |
@@ -206,7 +206,7 @@ |
||
| 206 | 206 | $category = $category->getExternalId(); |
| 207 | 207 | } |
| 208 | 208 | |
| 209 | - return $this->parentCategories->exists(function ($key, CategoryInterface $element) use ($category) { |
|
| 209 | + return $this->parentCategories->exists(function($key, CategoryInterface $element) use ($category) { |
|
| 210 | 210 | return $element->getExternalId() === $category; |
| 211 | 211 | }); |
| 212 | 212 | } |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | $tagValue = $tagValue->getExternalId(); |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | - return $this->tagValues->exists(function ($key, TagValueInterface $element) use ($tagValue) { |
|
| 82 | + return $this->tagValues->exists(function($key, TagValueInterface $element) use ($tagValue) { |
|
| 83 | 83 | return $element->getExternalId() === $tagValue; |
| 84 | 84 | }); |
| 85 | 85 | } |
@@ -103,7 +103,7 @@ |
||
| 103 | 103 | // reset options |
| 104 | 104 | $this->options = []; |
| 105 | 105 | |
| 106 | - if($options['iterate']) { |
|
| 106 | + if ($options['iterate']) { |
|
| 107 | 107 | return $this->generator($qb, $options); |
| 108 | 108 | } else { |
| 109 | 109 | return $qb->getQuery()->getResult(); |
@@ -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 | } |