Code Duplication    Length = 2-3 lines in 5 locations

class/oledrion_shelf.php 5 locations

@@ 198-200 (lines=3) @@
195
                }
196
                break;
197
198
            case 'mostviewed':
199
                $products = $this->handlers->h_oledrion_products->getMostViewedProducts(new Oledrion_parameters(array(
200
                                                                                                                    'start'    => $start,
201
                                                                                                                    'limit'    => $limit,
202
                                                                                                                    'category' => $category,
203
                                                                                                                    'sort'     => $sort,
@@ 208-210 (lines=3) @@
205
                                                                                                                )));
206
                break;
207
208
            case 'bestrated':
209
                $products = $this->handlers->h_oledrion_products->getBestRatedProducts(new Oledrion_parameters(array(
210
                                                                                                                   'start'    => $start,
211
                                                                                                                   'limit'    => $limit,
212
                                                                                                                   'category' => $category,
213
                                                                                                                   'sort'     => $sort,
@@ 218-220 (lines=3) @@
215
                                                                                                               )));
216
                break;
217
218
            case 'recommended':
219
                $products = $this->handlers->h_oledrion_products->getRecentRecommended(new Oledrion_parameters(array(
220
                                                                                                                   'start'    => $start,
221
                                                                                                                   'limit'    => $limit,
222
                                                                                                                   'category' => $category,
223
                                                                                                                   'sort'     => $sort,
@@ 228-230 (lines=3) @@
225
                                                                                                               )));
226
                break;
227
228
            case 'promotional':
229
                $products = $this->handlers->h_oledrion_products->getPromotionalProducts(new Oledrion_parameters(array(
230
                                                                                                                     'start'    => $start,
231
                                                                                                                     'limit'    => $limit,
232
                                                                                                                     'category' => $category,
233
                                                                                                                     'sort'     => $sort,
@@ 238-239 (lines=2) @@
235
                                                                                                                 )));
236
                break;
237
238
            case 'random':
239
                $products = $this->handlers->h_oledrion_products->getRandomProducts(new Oledrion_parameters(array(
240
                                                                                                                'start'         => $start,
241
                                                                                                                'limit'         => $limit,
242
                                                                                                                'category'      => $category,