Passed
Pull Request — master (#167)
by
unknown
05:24
created
src/PropertyBuilder/ProductDescriptionBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     public function consumeEvent(TransformEvent $event): void
26 26
     {
27 27
         $this->buildProperty($event, ProductInterface::class,
28
-            function (ProductInterface $product, Document $document): void {
28
+            function(ProductInterface $product, Document $document): void {
29 29
                 /** @var ProductTranslationInterface $productTranslation */
30 30
                 foreach ($product->getTranslations() as $productTranslation) {
31 31
                     $propertyName = $this->productDescriptionNameResolver->resolvePropertyName(
Please login to merge, or discard this patch.
src/Form/Type/SearchType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             ->setMethod('GET')
51 51
         ;
52 52
 
53
-        $formModifier = function (FormInterface $form, AdapterInterface $adapter) {
53
+        $formModifier = function(FormInterface $form, AdapterInterface $adapter) {
54 54
             if (!$adapter instanceof FantaPaginatorAdapter) {
55 55
                 return;
56 56
             }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
             ->get('box')
63 63
             ->addEventListener(
64 64
                 FormEvents::POST_SUBMIT,
65
-                function (FormEvent $event) use ($formModifier) {
65
+                function(FormEvent $event) use ($formModifier) {
66 66
                     /** @var SearchBox $data */
67 67
                     $data = $event->getForm()->getData();
68 68
 
Please login to merge, or discard this patch.
src/PropertyBuilder/ProductTaxonPositionPropertyBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     public function consumeEvent(TransformEvent $event): void
21 21
     {
22 22
         $this->buildProperty($event, ProductInterface::class,
23
-            function (ProductInterface $product, Document $document): void {
23
+            function(ProductInterface $product, Document $document): void {
24 24
                 foreach ($product->getProductTaxons() as $taxon) {
25 25
                     $document->set(
26 26
                         $this->taxonPositionNameResolver->resolvePropertyName($taxon->getTaxon()->getCode()),
Please login to merge, or discard this patch.
src/Form/Type/ChoiceMapper/ProductAttributesMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         $attributeValues = $this->productAttributeValueRepository->getUniqueAttributeValues($productAttribute);
60 60
 
61 61
         $choices = [];
62
-        array_walk($attributeValues, function ($productAttributeValue) use (&$choices, $productAttribute): void {
62
+        array_walk($attributeValues, function($productAttributeValue) use (&$choices, $productAttribute): void {
63 63
             $value = $productAttributeValue['value'];
64 64
 
65 65
             $configuration = $productAttribute->getConfiguration();
Please login to merge, or discard this patch.
src/Repository/ProductAttributeValueRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
         return $queryBuilder
36 36
             ->join('o.subject', 'p', 'WITH', 'p.enabled = 1')
37
-            ->select('o.localeCode, o.'.$storageType.' as value')
37
+            ->select('o.localeCode, o.' . $storageType . ' as value')
38 38
             ->where('o.attribute = :attribute')
39 39
             ->groupBy('o.' . $storageType)
40 40
             ->addGroupBy('o.localeCode')
Please login to merge, or discard this patch.
src/Controller/Action/Shop/ListProductsAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 
63 63
     public function __invoke(Request $request): Response
64 64
     {
65
-        $form = $this->formFactory->create(  ShopProductsFilterType::class);
65
+        $form = $this->formFactory->create(ShopProductsFilterType::class);
66 66
         $form->handleRequest($request);
67 67
         $requestData = array_merge(
68 68
             $form->getData(),
Please login to merge, or discard this patch.
bin/create_node_symlink.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     exec(sprintf('mklink /J %s %s 2> NUL', NODE_MODULES_FOLDER_NAME, PATH_TO_NODE_MODULES), $output, $returnCode);
30 30
     $success = $returnCode === 0;
31 31
     if (!$success) {
32
-	echo '> Failed o create the required symlink' . PHP_EOL;
32
+    echo '> Failed o create the required symlink' . PHP_EOL;
33 33
         exit(2);
34 34
     }
35 35
 }
Please login to merge, or discard this patch.
src/Controller/RequestDataHandler/ShopProductListDataHandler.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
         foreach ($requestData['options'] as $key => $value) {
97 97
             if (is_array($value) && 0 === strpos($key, $this->optionPropertyPrefix)) {
98
-                $data[$key] = array_map(function (string $property): string {
98
+                $data[$key] = array_map(function(string $property): string {
99 99
                     return strtolower($property);
100 100
                 }, $value);
101 101
             }
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         $data = [];
128 128
         /** @var ProductAttribute $attributesDefinition */
129 129
         foreach ($attributesDefinitions as $attributesDefinition) {
130
-            $data["attribute_".$attributesDefinition->getCode()] = $attributesDefinition->getType();
130
+            $data["attribute_" . $attributesDefinition->getCode()] = $attributesDefinition->getType();
131 131
         }
132 132
         return $data;
133 133
     }
@@ -136,12 +136,12 @@  discard block
 block discarded – undo
136 136
     {
137 137
         $reformattedValues = [];
138 138
         foreach ($attributeValues as $attributeValue) {
139
-            switch ($attributesDefinitions[$property]){
139
+            switch ($attributesDefinitions[$property]) {
140 140
                 case CheckboxAttributeType::TYPE:
141
-                    $value = (bool)($attributeValue);
141
+                    $value = (bool) ($attributeValue);
142 142
                     break;
143 143
                 case IntegerAttributeType::TYPE:
144
-                    $value = (float)($attributeValue);
144
+                    $value = (float) ($attributeValue);
145 145
                     break;
146 146
                 default:
147 147
                     $value = strtolower($attributeValue);
Please login to merge, or discard this patch.