Code Duplication    Length = 4-4 lines in 3 locations

admin/actions/orders.php 1 location

@@ 383-386 (lines=4) @@
380
        // Recherche des fabricants **********************************************************************************************
381
        $tmp2 = $h_oledrion_productsmanu->getFromProductsIds($tmp);
382
        $tmp = array();
383
        foreach ($tmp2 as $item) {
384
            $tmp[] = $item->getVar('pm_manu_id');
385
            $productsManufacturers[$item->getVar('pm_product_id')][] = $item;
386
        }
387
        $manufacturers = $h_oledrion_manufacturer->getManufacturersFromIds($tmp);
388
        $handlers = oledrion_handler::getInstance();
389
        $oledrion_Currency = oledrion_Currency::getInstance();

class/oledrion_shelf.php 1 location

@@ 222-225 (lines=4) @@
219
220
        $productsManufacturers = $this->handlers->h_oledrion_productsmanu->getFromProductsIds($productsIds);
221
        // Regroupement des fabricants par produit
222
        foreach ($productsManufacturers as $item) {
223
            $manufacturersIds[] = $item->getVar('pm_manu_id');
224
            $manufacturersPerProduct[$item->getVar('pm_product_id')][] = $item;
225
        }
226
        // On récupère la liste des personnes qui ont soumis les produits
227
        if ($withXoopsUser) {
228
            $users = oledrion_utils::getUsersFromIds($xoopsUsersIDs);

invoice.php 1 location

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