@@ -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) { |
@@ -36,7 +36,7 @@ |
||
36 | 36 | public function consumeEvent(PostTransformEvent $event): void |
37 | 37 | { |
38 | 38 | $this->buildProperty($event, ProductInterface::class, |
39 | - function (ProductInterface $product, Document $document): void { |
|
39 | + function(ProductInterface $product, Document $document): void { |
|
40 | 40 | $this->resolveProductAttributes($product, $document); |
41 | 41 | }); |
42 | 42 | } |
@@ -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->productNameNameResolver->resolvePropertyName($productTranslation->getLocale()); |
@@ -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->productShortDescriptionNameResolver->resolvePropertyName( |