Code Duplication    Length = 3-3 lines in 2 locations

system/modules/Ecommerce/Ecommerce.php 2 locations

@@ 175-177 (lines=3) @@
172
            foreach ($options['filters'] as $col => $filter) {
173
                switch ($col) {
174
                    case 'price':
175
                        if (!empty($filter['min'])) {
176
                            $selectOptions['where'][] = [Ecommerce\Item\Offer\Price::colPrefix() . 'price', (float) $filter['min'], '>='];
177
                        }
178
                        if (!empty($filter['max'])) {
179
                            $selectOptions['where'][] = [Ecommerce\Item\Offer\Price::colPrefix() . 'price', (float) $filter['max'], '<='];
180
                        }
@@ 178-180 (lines=3) @@
175
                        if (!empty($filter['min'])) {
176
                            $selectOptions['where'][] = [Ecommerce\Item\Offer\Price::colPrefix() . 'price', (float) $filter['min'], '>='];
177
                        }
178
                        if (!empty($filter['max'])) {
179
                            $selectOptions['where'][] = [Ecommerce\Item\Offer\Price::colPrefix() . 'price', (float) $filter['max'], '<='];
180
                        }
181
                        break;
182
                    case 'options':
183
                        foreach ($filter as $optionId => $optionValue) {