Code Duplication    Length = 3-3 lines in 2 locations

system/modules/Ecommerce/objects/OptionsParser.php 2 locations

@@ 129-131 (lines=3) @@
126
            switch ($col) {
127
                case 'price':
128
                    $colName = Item\Offer\Price::colPrefix() . 'price';
129
                    if (!empty($filter['min'])) {
130
                        $selectOptions['where'][] = [$colName, (float) $filter['min'], '>='];
131
                    }
132
                    if (!empty($filter['max'])) {
133
                        $selectOptions['where'][] = [$colName, (float) $filter['max'], '<='];
134
                    }
@@ 132-134 (lines=3) @@
129
                    if (!empty($filter['min'])) {
130
                        $selectOptions['where'][] = [$colName, (float) $filter['min'], '>='];
131
                    }
132
                    if (!empty($filter['max'])) {
133
                        $selectOptions['where'][] = [$colName, (float) $filter['max'], '<='];
134
                    }
135
                    break;
136
                case 'options':
137
                case 'offerOptions':