@@ -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(); |
@@ -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 | } |