Passed
Pull Request — master (#167)
by
unknown
05:24
created
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.