Code Duplication    Length = 8-8 lines in 2 locations

class/bbcvols.class.php 2 locations

@@ 714-721 (lines=8) @@
711
        $billDone = $langs->trans('Facturé');
712
        $billNotDone = $langs->trans('Ouvert');
713
714
        if ($mode == 0) {
715
            if ($status == 1) {
716
                return $billDone;
717
            }
718
            if ($status == 0) {
719
                return $billNotDone;
720
            }
721
        }
722
        if ($mode == 1) {
723
            if ($status == 1) {
724
                return $billDone;
@@ 722-729 (lines=8) @@
719
                return $billNotDone;
720
            }
721
        }
722
        if ($mode == 1) {
723
            if ($status == 1) {
724
                return $billDone;
725
            }
726
            if ($status == 0) {
727
                return $billNotDone;
728
            }
729
        }
730
        if ($mode == 2) {
731
            if ($status == 1) {
732
                return img_picto($billDone, 'statut4') . ' ' . $billDone;