@@ -29,7 +29,7 @@ |
||
| 29 | 29 | $this->buildProperty( |
| 30 | 30 | $event, |
| 31 | 31 | ProductInterface::class, |
| 32 | - function (ProductInterface $product, Document $document): void { |
|
| 32 | + function(ProductInterface $product, Document $document): void { |
|
| 33 | 33 | $channels = []; |
| 34 | 34 | |
| 35 | 35 | foreach ($product->getChannels() as $channel) { |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | $this->buildProperty( |
| 31 | 31 | $event, |
| 32 | 32 | ProductInterface::class, |
| 33 | - function (ProductInterface $product, Document $document): void { |
|
| 33 | + function(ProductInterface $product, Document $document): void { |
|
| 34 | 34 | foreach ($product->getProductTaxons() as $taxon) { |
| 35 | 35 | $document->set( |
| 36 | 36 | $this->taxonPositionNameResolver->resolvePropertyName($taxon->getTaxon()->getCode()), |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | $this->buildProperty( |
| 35 | 35 | $event, |
| 36 | 36 | ProductInterface::class, |
| 37 | - function (ProductInterface $product, Document $document): void { |
|
| 37 | + function(ProductInterface $product, Document $document): void { |
|
| 38 | 38 | $soldUnits = 0; |
| 39 | 39 | |
| 40 | 40 | foreach ($product->getVariants() as $productVariant) { |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | $this->buildProperty( |
| 40 | 40 | $event, |
| 41 | 41 | ProductInterface::class, |
| 42 | - function (ProductInterface $product, Document $document): void { |
|
| 42 | + function(ProductInterface $product, Document $document): void { |
|
| 43 | 43 | $this->resolveProductAttributes($product, $document); |
| 44 | 44 | } |
| 45 | 45 | ); |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | $this->buildProperty( |
| 24 | 24 | $event, |
| 25 | 25 | ProductInterface::class, |
| 26 | - function (ProductInterface $product, Document $document): void { |
|
| 26 | + function(ProductInterface $product, Document $document): void { |
|
| 27 | 27 | $document->set(self::PROPERTY_NAME, $product->getCode()); |
| 28 | 28 | } |
| 29 | 29 | ); |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | $this->buildProperty( |
| 32 | 32 | $event, |
| 33 | 33 | ProductInterface::class, |
| 34 | - function (ProductInterface $product, Document $document): void { |
|
| 34 | + function(ProductInterface $product, Document $document): void { |
|
| 35 | 35 | if (0 === $product->getVariants()->count()) { |
| 36 | 36 | return; |
| 37 | 37 | } |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | $this->buildProperty( |
| 30 | 30 | $event, |
| 31 | 31 | ProductInterface::class, |
| 32 | - function (ProductInterface $product, Document $document): void { |
|
| 32 | + function(ProductInterface $product, Document $document): void { |
|
| 33 | 33 | $createdAt = (int) $product->getCreatedAt()->format('U'); |
| 34 | 34 | |
| 35 | 35 | $document->set($this->createdAtProperty, $createdAt); |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | $this->buildProperty( |
| 36 | 36 | $event, |
| 37 | 37 | ProductInterface::class, |
| 38 | - function (ProductInterface $product, Document $document): void { |
|
| 38 | + function(ProductInterface $product, Document $document): void { |
|
| 39 | 39 | $this->resolveProductOptions($product, $document); |
| 40 | 40 | } |
| 41 | 41 | ); |