@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | * an email on [email protected]. |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -declare(strict_types=1); |
|
| 11 | +declare(strict_types = 1); |
|
| 12 | 12 | |
| 13 | 13 | namespace BitBag\SyliusElasticsearchPlugin\PropertyBuilder; |
| 14 | 14 | |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | public function consumeEvent(TransformEvent $event): void |
| 40 | 40 | { |
| 41 | 41 | $this->buildProperty($event, ProductInterface::class, |
| 42 | - function (ProductInterface $product, Document $document): void { |
|
| 42 | + function(ProductInterface $product, Document $document): void { |
|
| 43 | 43 | /** @var ProductTranslationInterface $productTranslation */ |
| 44 | 44 | foreach ($product->getTranslations() as $productTranslation) { |
| 45 | 45 | $propertyName = $this->productNameNameResolver->resolvePropertyName($productTranslation->getLocale()); |
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | * an email on [email protected]. |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -declare(strict_types=1); |
|
| 11 | +declare(strict_types = 1); |
|
| 12 | 12 | |
| 13 | 13 | namespace BitBag\SyliusElasticsearchPlugin\PropertyBuilder; |
| 14 | 14 | |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | public function consumeEvent(TransformEvent $event): void |
| 38 | 38 | { |
| 39 | 39 | $this->buildProperty($event, ProductInterface::class, |
| 40 | - function (ProductInterface $product, Document $document): void { |
|
| 40 | + function(ProductInterface $product, Document $document): void { |
|
| 41 | 41 | $channels = []; |
| 42 | 42 | |
| 43 | 43 | foreach ($product->getChannels() as $channel) { |
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | * an email on [email protected]. |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -declare(strict_types=1); |
|
| 11 | +declare(strict_types = 1); |
|
| 12 | 12 | |
| 13 | 13 | namespace BitBag\SyliusElasticsearchPlugin\PropertyBuilder; |
| 14 | 14 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | public function consumeEvent(TransformEvent $event): void |
| 47 | 47 | { |
| 48 | 48 | $this->buildProperty($event, ProductInterface::class, |
| 49 | - function (ProductInterface $product, Document $document): void { |
|
| 49 | + function(ProductInterface $product, Document $document): void { |
|
| 50 | 50 | $this->resolveProductOptions($product, $document); |
| 51 | 51 | }); |
| 52 | 52 | } |
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | * an email on [email protected]. |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -declare(strict_types=1); |
|
| 11 | +declare(strict_types = 1); |
|
| 12 | 12 | |
| 13 | 13 | namespace BitBag\SyliusElasticsearchPlugin\PropertyBuilder; |
| 14 | 14 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | public function consumeEvent(TransformEvent $event): void |
| 50 | 50 | { |
| 51 | 51 | $this->buildProperty($event, ProductInterface::class, |
| 52 | - function (ProductInterface $product, Document $document): void { |
|
| 52 | + function(ProductInterface $product, Document $document): void { |
|
| 53 | 53 | $this->resolveProductAttributes($product, $document); |
| 54 | 54 | }); |
| 55 | 55 | } |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | if (is_array($value)) { |
| 70 | 70 | foreach ($value as $singleElement) { |
| 71 | - $attributes[] = $this->stringFormatter->formatToLowercaseWithoutSpaces((string)$singleElement); |
|
| 71 | + $attributes[] = $this->stringFormatter->formatToLowercaseWithoutSpaces((string) $singleElement); |
|
| 72 | 72 | } |
| 73 | 73 | } else { |
| 74 | 74 | $value = is_string($value) ? $this->stringFormatter->formatToLowercaseWithoutSpaces($value) : $value; |
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | * an email on [email protected]. |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -declare(strict_types=1); |
|
| 11 | +declare(strict_types = 1); |
|
| 12 | 12 | |
| 13 | 13 | namespace BitBag\SyliusElasticsearchPlugin\PropertyBuilder; |
| 14 | 14 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | public function consumeEvent(TransformEvent $event): void |
| 46 | 46 | { |
| 47 | 47 | $this->buildProperty($event, ProductInterface::class, |
| 48 | - function (ProductInterface $product, Document $document): void { |
|
| 48 | + function(ProductInterface $product, Document $document): void { |
|
| 49 | 49 | $soldUnits = 0; |
| 50 | 50 | |
| 51 | 51 | foreach ($product->getVariants() as $productVariant) { |
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | * an email on [email protected]. |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -declare(strict_types=1); |
|
| 11 | +declare(strict_types = 1); |
|
| 12 | 12 | |
| 13 | 13 | namespace BitBag\SyliusElasticsearchPlugin\PropertyBuilder; |
| 14 | 14 | |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | public function consumeEvent(TransformEvent $event): void |
| 40 | 40 | { |
| 41 | 41 | $this->buildProperty($event, ProductInterface::class, |
| 42 | - function (ProductInterface $product, Document $document): void { |
|
| 42 | + function(ProductInterface $product, Document $document): void { |
|
| 43 | 43 | /** @var ProductVariantInterface $productVariant */ |
| 44 | 44 | $productVariant = $product->getVariants()->first(); |
| 45 | 45 | |