Code Duplication    Length = 11-11 lines in 2 locations

install/src/controllers/summary.php 2 locations

@@ 122-132 (lines=11) @@
119
120
// File Browser directories exists?
121
echo '<p>'.$_lang['checking_if_images_exist'];
122
switch(true){
123
    case !file_exists("../assets/images"):
124
    case !file_exists("../assets/files"):
125
    case !file_exists("../assets/backup"):
126
    case !file_exists("../assets/.thumbs"):
127
        $errors++;
128
        echo '<span class="notok">'.$_lang['failed'].'</span></p>';
129
        break;
130
    default:
131
        echo '<span class="ok">'.$_lang['ok'].'</span></p>';
132
}
133
134
135
// File Browser directories writable?
@@ 137-147 (lines=11) @@
134
135
// File Browser directories writable?
136
echo '<p>'.$_lang['checking_if_images_writable'];
137
switch(true){
138
    case !is_writable("../assets/images"):
139
    case !is_writable("../assets/files"):
140
    case !is_writable("../assets/backup"):
141
    case !is_writable("../assets/.thumbs"):
142
        $errors++;
143
        echo '<span class="notok">'.$_lang['failed'].'</span></p>';
144
        break;
145
    default:
146
        echo '<span class="ok">'.$_lang['ok'].'</span></p>';
147
}
148
149
150
// export exists?