@@ -28,7 +28,7 @@ |
||
| 28 | 28 | public function consumeEvent(PostTransformEvent $event): void |
| 29 | 29 | { |
| 30 | 30 | $this->buildProperty($event, ProductInterface::class, |
| 31 | - function (ProductInterface $product, Document $document): void { |
|
| 31 | + function(ProductInterface $product, Document $document): void { |
|
| 32 | 32 | if (0 === $product->getVariants()->count()) { |
| 33 | 33 | return; |
| 34 | 34 | } |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | public function consumeEvent(PostTransformEvent $event): void |
| 32 | 32 | { |
| 33 | 33 | $this->buildProperty($event, ProductInterface::class, |
| 34 | - function (ProductInterface $product, Document $document): void { |
|
| 34 | + function(ProductInterface $product, Document $document): void { |
|
| 35 | 35 | $soldUnits = 0; |
| 36 | 36 | |
| 37 | 37 | foreach ($product->getVariants() as $productVariant) { |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | public function consumeEvent(PostTransformEvent $event): void |
| 32 | 32 | { |
| 33 | 33 | $this->buildProperty($event, ProductInterface::class, |
| 34 | - function (ProductInterface $product, Document $document): void { |
|
| 34 | + function(ProductInterface $product, Document $document): void { |
|
| 35 | 35 | $taxons = $this->productTaxonsMapper->mapToUniqueCodes($product); |
| 36 | 36 | |
| 37 | 37 | $document->set($this->taxonsProperty, $taxons); |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | public function consumeEvent(PostTransformEvent $event): void |
| 28 | 28 | { |
| 29 | 29 | $this->buildProperty($event, ProductInterface::class, |
| 30 | - function (ProductInterface $product, Document $document): void { |
|
| 30 | + function(ProductInterface $product, Document $document): void { |
|
| 31 | 31 | foreach ($product->getProductTaxons() as $taxon) { |
| 32 | 32 | $document->set( |
| 33 | 33 | $this->taxonPositionNameResolver->resolvePropertyName($taxon->getTaxon()->getCode()), |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | public function consumeEvent(PostTransformEvent $event): void |
| 29 | 29 | { |
| 30 | 30 | $this->buildProperty($event, ProductInterface::class, |
| 31 | - function (ProductInterface $product, Document $document): void { |
|
| 31 | + function(ProductInterface $product, Document $document): void { |
|
| 32 | 32 | /** @var ProductTranslationInterface $productTranslation */ |
| 33 | 33 | foreach ($product->getTranslations() as $productTranslation) { |
| 34 | 34 | $propertyName = $this->productDescriptionNameResolver->resolvePropertyName( |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | public function consumeEvent(PostTransformEvent $event): void |
| 33 | 33 | { |
| 34 | 34 | $this->buildProperty($event, ProductInterface::class, |
| 35 | - function (ProductInterface $product, Document $document): void { |
|
| 35 | + function(ProductInterface $product, Document $document): void { |
|
| 36 | 36 | $this->resolveProductOptions($product, $document); |
| 37 | 37 | }); |
| 38 | 38 | } |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | public function consumeEvent(PostTransformEvent $event): void |
| 27 | 27 | { |
| 28 | 28 | $this->buildProperty($event, ProductInterface::class, |
| 29 | - function (ProductInterface $product, Document $document): void { |
|
| 29 | + function(ProductInterface $product, Document $document): void { |
|
| 30 | 30 | $createdAt = (int) $product->getCreatedAt()->format('U'); |
| 31 | 31 | |
| 32 | 32 | $document->set($this->createdAtProperty, $createdAt); |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | public function consumeEvent(PostTransformEvent $event): void |
| 21 | 21 | { |
| 22 | 22 | $this->buildProperty($event, ProductInterface::class, |
| 23 | - function (ProductInterface $product, Document $document): void { |
|
| 23 | + function(ProductInterface $product, Document $document): void { |
|
| 24 | 24 | $document->set(self::PROPERTY_NAME, $product->getCode()); |
| 25 | 25 | } |
| 26 | 26 | ); |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | public function consumeEvent(PostTransformEvent $event): void |
| 27 | 27 | { |
| 28 | 28 | $this->buildProperty($event, ProductInterface::class, |
| 29 | - function (ProductInterface $product, Document $document): void { |
|
| 29 | + function(ProductInterface $product, Document $document): void { |
|
| 30 | 30 | $channels = []; |
| 31 | 31 | |
| 32 | 32 | foreach ($product->getChannels() as $channel) { |