@@ -58,10 +58,10 @@ |
||
58 | 58 | ], |
59 | 59 | ], |
60 | 60 | ], |
61 | - 'fk_category_template' => function ($value, $payload) { |
|
61 | + 'fk_category_template' => function($value, $payload) { |
|
62 | 62 | return $this->config->getFkCategoryTemplate(); |
63 | 63 | }, |
64 | - 'parent_category_key' => function ($value) { |
|
64 | + 'parent_category_key' => function($value) { |
|
65 | 65 | if (!$value) { |
66 | 66 | return $this->config->getDefaultParentCategoryKey(); |
67 | 67 | } |
@@ -158,29 +158,29 @@ discard block |
||
158 | 158 | } |
159 | 159 | |
160 | 160 | static::$attributeOptionMap = array_map( |
161 | - function ($element) { |
|
161 | + function($element) { |
|
162 | 162 | return $element[static::KEY_OPTIONS]; |
163 | 163 | }, |
164 | - array_filter($this->getMap(), function ($element) { |
|
164 | + array_filter($this->getMap(), function($element) { |
|
165 | 165 | return count($element[static::KEY_OPTIONS] ?? []) > 0 && |
166 | 166 | in_array($element[static::KEY_TYPE], static::ATTRIBUTE_TYPES_WITH_OPTIONS); |
167 | 167 | }), |
168 | 168 | ); |
169 | 169 | |
170 | 170 | static::$attributeLocalizableMap = array_map( |
171 | - function ($element) { |
|
171 | + function($element) { |
|
172 | 172 | return $element[static::KEY_LOCALIZABLE]; |
173 | 173 | }, |
174 | - array_filter($this->getMap(), function ($element) { |
|
174 | + array_filter($this->getMap(), function($element) { |
|
175 | 175 | return in_array($element[static::KEY_TYPE], static::ATTRIBUTE_TYPES_WITH_OPTIONS); |
176 | 176 | }), |
177 | 177 | ); |
178 | 178 | |
179 | 179 | static::$attributesForSkippingMap = array_map( |
180 | - function ($element) { |
|
180 | + function($element) { |
|
181 | 181 | return $element[static::KEY_KEY]; |
182 | 182 | }, |
183 | - array_filter($this->getMap(), function ($element) { |
|
183 | + array_filter($this->getMap(), function($element) { |
|
184 | 184 | return in_array($element[static::KEY_TYPE], static::ATTRIBUTES_TYPES_FOR_SKIPPING) && $element[static::KEY_KEY] != static::ATTRIBUTE_PRICE; |
185 | 185 | }), |
186 | 186 | ); |
@@ -243,8 +243,7 @@ discard block |
||
243 | 243 | |
244 | 244 | foreach ($optionKeys as $optionKey) { |
245 | 245 | $options[] = array_key_exists($optionKey, static::$attributeOptionMap[$attributeKey]) ? |
246 | - static::$attributeOptionMap[$attributeKey][$optionKey] : |
|
247 | - $optionKey; |
|
246 | + static::$attributeOptionMap[$attributeKey][$optionKey] : $optionKey; |
|
248 | 247 | } |
249 | 248 | |
250 | 249 | return $options; |
@@ -265,8 +264,7 @@ discard block |
||
265 | 264 | |
266 | 265 | // Concatenate with comma for multiselect values |
267 | 266 | $value[$locale][static::KEY_DATA] = isset($value[$locale][static::KEY_DATA]) ? |
268 | - $value[$locale][static::KEY_DATA] . ', ' . $optionValue : |
|
269 | - $optionValue; |
|
267 | + $value[$locale][static::KEY_DATA].', '.$optionValue : $optionValue; |
|
270 | 268 | } |
271 | 269 | } |
272 | 270 |