@@ -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(); |
@@ -481,7 +481,7 @@ discard block |
||
| 481 | 481 | */ |
| 482 | 482 | public function updateCategories(array $categories): void |
| 483 | 483 | { |
| 484 | - if(empty($categories)) { |
|
| 484 | + if (empty($categories)) { |
|
| 485 | 485 | $this->clearCategories(); |
| 486 | 486 | return; |
| 487 | 487 | } |
@@ -528,7 +528,7 @@ discard block |
||
| 528 | 528 | public function findCategory(CategoryInterface $searchCategory): ?CategoryInterface |
| 529 | 529 | { |
| 530 | 530 | foreach ($this->categories as $category) { |
| 531 | - if($category->getNumber() === $searchCategory->getNumber()) { |
|
| 531 | + if ($category->getNumber() === $searchCategory->getNumber()) { |
|
| 532 | 532 | return $category; |
| 533 | 533 | } |
| 534 | 534 | } |
@@ -555,7 +555,7 @@ discard block |
||
| 555 | 555 | |
| 556 | 556 | public function hasManufacturer(ManufacturerInterface $manufacturer): bool |
| 557 | 557 | { |
| 558 | - return $this->manufacturers->exists(function ($key, ManufacturerInterface $element) use ($manufacturer) { |
|
| 558 | + return $this->manufacturers->exists(function($key, ManufacturerInterface $element) use ($manufacturer) { |
|
| 559 | 559 | return $element->getExternalId() === $manufacturer->getExternalId(); |
| 560 | 560 | }); |
| 561 | 561 | } |
@@ -593,7 +593,7 @@ discard block |
||
| 593 | 593 | $variantGroup = $variantGroup->getExternalId(); |
| 594 | 594 | } |
| 595 | 595 | |
| 596 | - return $this->variantGroups->exists(function ($key, VariantGroupInterface $element) use ($variantGroup) { |
|
| 596 | + return $this->variantGroups->exists(function($key, VariantGroupInterface $element) use ($variantGroup) { |
|
| 597 | 597 | return $element->getExternalId() === $variantGroup; |
| 598 | 598 | }); |
| 599 | 599 | } |
@@ -734,7 +734,7 @@ discard block |
||
| 734 | 734 | $product = $product->getExternalId(); |
| 735 | 735 | } |
| 736 | 736 | |
| 737 | - return $this->children->exists(function ($key, ProductInterface $element) use ($product) { |
|
| 737 | + return $this->children->exists(function($key, ProductInterface $element) use ($product) { |
|
| 738 | 738 | return $element->getExternalId() === $product; |
| 739 | 739 | }); |
| 740 | 740 | } |