@@ -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 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | /** @var ProductOptionInterface $productOption */ |
| 74 | 74 | foreach ($this->productOptionsContext->getOptions() as $productOption) { |
| 75 | 75 | $name = $this->optionPropertyPrefix . '_' . $productOption->getCode(); |
| 76 | - $optionValues = array_map(function (ProductOptionValueInterface $productOptionValue): ?string { |
|
| 76 | + $optionValues = array_map(function(ProductOptionValueInterface $productOptionValue): ?string { |
|
| 77 | 77 | return $productOptionValue->getValue(); |
| 78 | 78 | }, $productOption->getValues()->toArray()); |
| 79 | 79 | |
@@ -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 | |
@@ -60,8 +60,8 @@ discard block |
||
| 60 | 60 | /** @var ProductAttributeInterface $productAttribute */ |
| 61 | 61 | foreach ($this->productAttributesContext->getAttributes() as $productAttribute) { |
| 62 | 62 | $name = $this->attributePropertyPrefix . '_' . $productAttribute->getCode(); |
| 63 | - $attributeValues = array_map(function (?ProductAttributeValueInterface $productAttributeValue): ?string { |
|
| 64 | - return $productAttributeValue ? $productAttributeValue->getValue(): null; |
|
| 63 | + $attributeValues = array_map(function(?ProductAttributeValueInterface $productAttributeValue): ?string { |
|
| 64 | + return $productAttributeValue ? $productAttributeValue->getValue() : null; |
|
| 65 | 65 | }, $this->productAttributeValueRepository->findBy(['attribute' => $productAttribute])); |
| 66 | 66 | |
| 67 | 67 | $builder->add($name, ChoiceType::class, [ |