Code Duplication    Length = 3-3 lines in 2 locations

checkout.php 2 locations

@@ 665-667 (lines=3) @@
662
        }
663
664
        $sform -> addElement(new XoopsFormLabel(_OLEDRION_AMOUNT_PRICE, $oledrion_Currency -> amountForDisplay($commandAmountTTC)));
665
        if ($commande -> getVar('cmd_shipping') > 0) {
666
            $sform -> addElement(new XoopsFormLabel(_OLEDRION_SHIPPING_PRICE, $oledrion_Currency -> amountForDisplay($commande -> getVar('cmd_shipping'))));
667
        }
668
        if ($commande -> getVar('cmd_packing_price') > 0) {
669
            $sform -> addElement(new XoopsFormLabel(_OLEDRION_PACKING_PRICE, $oledrion_Currency -> amountForDisplay($commande -> getVar('cmd_packing_price'))));
670
        }
@@ 668-670 (lines=3) @@
665
        if ($commande -> getVar('cmd_shipping') > 0) {
666
            $sform -> addElement(new XoopsFormLabel(_OLEDRION_SHIPPING_PRICE, $oledrion_Currency -> amountForDisplay($commande -> getVar('cmd_shipping'))));
667
        }
668
        if ($commande -> getVar('cmd_packing_price') > 0) {
669
            $sform -> addElement(new XoopsFormLabel(_OLEDRION_PACKING_PRICE, $oledrion_Currency -> amountForDisplay($commande -> getVar('cmd_packing_price'))));
670
        }
671
        $sform -> addElement(new XoopsFormLabel(_OLEDRION_TOTAL, $oledrion_Currency -> amountForDisplay($commandAmountTTC + $commande -> getVar('cmd_shipping') + $commande -> getVar('cmd_packing_price'))));
672
        $sform -> addElement(new XoopsFormLabel(_OLEDRION_LASTNAME, $commande -> getVar('cmd_lastname')));
673
        $sform -> addElement(new XoopsFormLabel(_OLEDRION_FIRSTNAME, $commande -> getVar('cmd_firstname')));