Code Duplication    Length = 8-8 lines in 3 locations

class/bbcvols.class.php 3 locations

@@ 654-661 (lines=8) @@
651
                return $billNotDone;
652
            }
653
        }
654
        if ($mode == 2) {
655
            if ($status == 1) {
656
                return img_picto($billDone, 'statut4') . ' ' . $billDone;
657
            }
658
            if ($status == 0) {
659
                return img_picto($billNotDone, 'statut5') . ' ' . $billNotDone;
660
            }
661
        }
662
        if ($mode == 3) {
663
            if ($status == 1) {
664
                return img_picto($billDone, 'statut4');
@@ 670-677 (lines=8) @@
667
                return img_picto($billNotDone, 'statut5');
668
            }
669
        }
670
        if ($mode == 4) {
671
            if ($status == 1) {
672
                return img_picto($billDone, 'statut4') . ' ' . $billDone;
673
            }
674
            if ($status == 0) {
675
                return img_picto($billNotDone, 'statut5') . ' ' . $billNotDone;
676
            }
677
        }
678
        if ($mode == 5) {
679
            if ($status == 1) {
680
                return $billDone . ' ' . img_picto($billDone, 'statut4');
@@ 678-685 (lines=8) @@
675
                return img_picto($billNotDone, 'statut5') . ' ' . $billNotDone;
676
            }
677
        }
678
        if ($mode == 5) {
679
            if ($status == 1) {
680
                return $billDone . ' ' . img_picto($billDone, 'statut4');
681
            }
682
            if ($status == 0) {
683
                return $billNotDone . ' ' . img_picto($billNotDone, 'statut5');
684
            }
685
        }
686
687
        return "";
688
    }