Code Duplication    Length = 8-8 lines in 2 locations

class/bbcvols.class.php 2 locations

@@ 640-647 (lines=8) @@
637
        $billDone = $langs->trans('Facturé');
638
        $billNotDone = $langs->trans('Ouvert');
639
640
        if ($mode == 0) {
641
            if ($status == 1) {
642
                return $billDone;
643
            }
644
            if ($status == 0) {
645
                return $billNotDone;
646
            }
647
        }
648
        if ($mode == 1) {
649
            if ($status == 1) {
650
                return $billDone;
@@ 648-655 (lines=8) @@
645
                return $billNotDone;
646
            }
647
        }
648
        if ($mode == 1) {
649
            if ($status == 1) {
650
                return $billDone;
651
            }
652
            if ($status == 0) {
653
                return $billNotDone;
654
            }
655
        }
656
        if ($mode == 2) {
657
            if ($status == 1) {
658
                return img_picto($billDone, 'statut4') . ' ' . $billDone;