@@ -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 | |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | |
| 48 | 48 | /** @var ProductVariantInterface $productVariant */ |
| 49 | 49 | foreach ($product->getVariants() as $productVariant) { |
| 50 | - foreach($productVariant->getChannelPricings() as $channelPricing) { |
|
| 50 | + foreach ($productVariant->getChannelPricings() as $channelPricing) { |
|
| 51 | 51 | $propertyName = $this->channelPricingNameResolver->resolvePropertyName($channelPricing->getChannelCode()); |
| 52 | 52 | |
| 53 | 53 | $document->set($propertyName, $channelPricing->getPrice()); |
@@ -8,7 +8,7 @@ |
||
| 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 | |
@@ -8,7 +8,7 @@ |
||
| 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 | |
@@ -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\Form\Type; |
| 14 | 14 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | /** @var ProductOptionInterface $productOption */ |
| 53 | 53 | foreach ($this->productOptionsContext->getOptions() as $productOption) { |
| 54 | 54 | $name = $this->optionNameResolver->resolvePropertyName($productOption->getCode()); |
| 55 | - $optionValues = array_map(function (ProductOptionValueInterface $productOptionValue): ?string { |
|
| 55 | + $optionValues = array_map(function(ProductOptionValueInterface $productOptionValue): ?string { |
|
| 56 | 56 | return $productOptionValue->getValue(); |
| 57 | 57 | }, $productOption->getValues()->toArray()); |
| 58 | 58 | |
@@ -8,7 +8,7 @@ |
||
| 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\PropertyNameResolver; |
| 14 | 14 | |
@@ -8,7 +8,7 @@ |
||
| 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\QueryBuilder; |
| 14 | 14 | |
@@ -8,7 +8,7 @@ |
||
| 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\QueryBuilder; |
| 14 | 14 | |
@@ -8,7 +8,7 @@ |
||
| 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\PropertyValueResolver; |
| 14 | 14 | |
@@ -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\Form\Type; |
| 14 | 14 | |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | $name = $this->attributeNameResolver->resolvePropertyName($productAttribute->getCode()); |
| 73 | 73 | $attributeValues = $this->productAttributeValueRepository->findBy(['attribute' => $productAttribute]); |
| 74 | 74 | $choices = []; |
| 75 | - array_walk($attributeValues, function (?ProductAttributeValueInterface $productAttributeValue) use (&$choices) { |
|
| 75 | + array_walk($attributeValues, function(?ProductAttributeValueInterface $productAttributeValue) use (&$choices) { |
|
| 76 | 76 | $choices[$productAttributeValue->getValue()] = $this->attributeValueResolver->resolve($productAttributeValue); |
| 77 | 77 | }); |
| 78 | 78 | |