Code Duplication    Length = 5-5 lines in 2 locations

index.php 2 locations

@@ 82-86 (lines=5) @@
79
foreach ($partnersArray as $thisPartner) {
80
    switch ($GLOBALS['xoopsModuleConfig']['modshow']) {
81
        case 3: //both image and text
82
            if (empty($thisPartner['image'])) {
83
                $thisPartner['image'] = $thisPartner['title'];
84
            } else {
85
                $thisPartner['image'] = "<img src='{$thisPartner['image']}' alt='{$thisPartner['url']}' title='{$thisPartner['title']}'>" . "<br>{$thisPartner['title']}";
86
            }
87
            break;
88
        case 2: // text
89
            $thisPartner['image'] = $thisPartner['title'];
@@ 93-97 (lines=5) @@
90
            break;
91
        case 1: // images
92
        default:
93
            if (empty($thisPartner['image'])) {
94
                $thisPartner['image'] = $thisPartner['title'];
95
            } else {
96
                $thisPartner['image'] = "<img src='{$thisPartner['image']}' alt='{$thisPartner['url']}' title='{$thisPartner['title']}'>";
97
            }
98
            break;
99
    }
100