@@ -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\PropertyNameResolver; |
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\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 @@ 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 | |
@@ -61,8 +61,8 @@ discard block |
||
61 | 61 | /** @var ProductAttributeInterface $productAttribute */ |
62 | 62 | foreach ($this->productAttributesContext->getAttributes() as $productAttribute) { |
63 | 63 | $name = $this->attributeNameResolver->resolvePropertyName($productAttribute->getCode()); |
64 | - $attributeValues = array_map(function (?ProductAttributeValueInterface $productAttributeValue): ?string { |
|
65 | - return $productAttributeValue ? $productAttributeValue->getValue(): null; |
|
64 | + $attributeValues = array_map(function(?ProductAttributeValueInterface $productAttributeValue): ?string { |
|
65 | + return $productAttributeValue ? $productAttributeValue->getValue() : null; |
|
66 | 66 | }, $this->productAttributeValueRepository->findBy(['attribute' => $productAttribute])); |
67 | 67 | |
68 | 68 | $builder->add($name, ChoiceType::class, [ |
@@ -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 |