|
@@ -8,7 +8,7 @@ discard block |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
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, [ |
Please login to merge, or discard this patch.