Code Duplication    Length = 3-3 lines in 2 locations

system/modules/Ecommerce/Ecommerce.php 2 locations

@@ 253-255 (lines=3) @@
250
            foreach ($options['filters'] as $col => $filter) {
251
                switch ($col) {
252
                    case 'price':
253
                        if (!empty($filter['min'])) {
254
                            $selectOptions['where'][] = [Ecommerce\Item\Offer\Price::colPrefix() . 'price', (float) $filter['min'], '>='];
255
                        }
256
                        if (!empty($filter['max'])) {
257
                            $selectOptions['where'][] = [Ecommerce\Item\Offer\Price::colPrefix() . 'price', (float) $filter['max'], '<='];
258
                        }
@@ 256-258 (lines=3) @@
253
                        if (!empty($filter['min'])) {
254
                            $selectOptions['where'][] = [Ecommerce\Item\Offer\Price::colPrefix() . 'price', (float) $filter['min'], '>='];
255
                        }
256
                        if (!empty($filter['max'])) {
257
                            $selectOptions['where'][] = [Ecommerce\Item\Offer\Price::colPrefix() . 'price', (float) $filter['max'], '<='];
258
                        }
259
                        break;
260
                    case 'options':
261
                        foreach ($filter as $optionId => $optionValue) {