Code Duplication    Length = 3-3 lines in 2 locations

system/modules/Ecommerce/Ecommerce.php 2 locations

@@ 246-248 (lines=3) @@
243
      foreach ($options['filters'] as $col => $filter) {
244
        switch ($col) {
245
          case 'price':
246
            if (!empty($filter['min'])) {
247
              $selectOptions['where'][] = [Ecommerce\Item\Offer\Price::colPrefix() . 'price', (float) $filter['min'], '>='];
248
            }
249
            if (!empty($filter['max'])) {
250
              $selectOptions['where'][] = [Ecommerce\Item\Offer\Price::colPrefix() . 'price', (float) $filter['max'], '<='];
251
            }
@@ 249-251 (lines=3) @@
246
            if (!empty($filter['min'])) {
247
              $selectOptions['where'][] = [Ecommerce\Item\Offer\Price::colPrefix() . 'price', (float) $filter['min'], '>='];
248
            }
249
            if (!empty($filter['max'])) {
250
              $selectOptions['where'][] = [Ecommerce\Item\Offer\Price::colPrefix() . 'price', (float) $filter['max'], '<='];
251
            }
252
            break;
253
          case 'options':
254
            foreach ($filter as $optionId => $optionValue) {