Code Duplication    Length = 4-4 lines in 3 locations

admin/actions/orders.php 1 location

@@ 425-428 (lines=4) @@
422
        // Recherche des fabricants **********************************************************************************************
423
        $tmp2 = $h_oledrion_productsmanu->getFromProductsIds($tmp);
424
        $tmp  = array();
425
        foreach ($tmp2 as $item) {
426
            $tmp[]                                                   = $item->getVar('pm_manu_id');
427
            $productsManufacturers[$item->getVar('pm_product_id')][] = $item;
428
        }
429
        $manufacturers     = $h_oledrion_manufacturer->getManufacturersFromIds($tmp);
430
        $handlers          = OledrionHandler::getInstance();
431
        $oledrion_Currency = Oledrion_Currency::getInstance();

class/oledrion_shelf.php 1 location

@@ 266-269 (lines=4) @@
263
264
        $productsManufacturers = $this->handlers->h_oledrion_productsmanu->getFromProductsIds($productsIds);
265
        // Regroupement des fabricants par produit
266
        foreach ($productsManufacturers as $item) {
267
            $manufacturersIds[]                                        = $item->getVar('pm_manu_id');
268
            $manufacturersPerProduct[$item->getVar('pm_product_id')][] = $item;
269
        }
270
        // On récupère la liste des personnes qui ont soumis les produits
271
        if ($withXoopsUser) {
272
            $users = OledrionUtility::getUsersFromIds($xoopsUsersIDs);

invoice.php 1 location

@@ 81-84 (lines=4) @@
78
// Recherche des fabricants **********************************************************************************************
79
$tmp2 = $h_oledrion_productsmanu->getFromProductsIds($tmp);
80
$tmp  = array();
81
foreach ($tmp2 as $item) {
82
    $tmp[]                                                   = $item->getVar('pm_manu_id');
83
    $productsManufacturers[$item->getVar('pm_product_id')][] = $item;
84
}
85
$manufacturers = $h_oledrion_manufacturer->getManufacturersFromIds($tmp);
86
87
switch ($op) {