Passed
Push — master ( e2ff7c...59f96f )
by Mikołaj
06:18
created
src/Form/Type/ProductOptionsFilterType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -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
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Form/Type/ProductAttributesFilterType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -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.
src/PropertyBuilder/ChannelPricingPropertyBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -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\PropertyBuilder;
14 14
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
         /** @var ProductVariantInterface $productVariant */
48 48
         foreach ($product->getVariants() as $productVariant) {
49
-            foreach($productVariant->getChannelPricings() as $channelPricing) {
49
+            foreach ($productVariant->getChannelPricings() as $channelPricing) {
50 50
                 $propertyName = $this->priceProperty . '_' . strtolower($channelPricing->getChannelCode());
51 51
 
52 52
                 $document->set($propertyName, $channelPricing->getPrice());
Please login to merge, or discard this patch.