Code Duplication    Length = 8-8 lines in 3 locations

class/bbcvols.class.php 3 locations

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