Code Duplication    Length = 11-11 lines in 2 locations

install/cli-install.php 2 locations

@@ 206-216 (lines=11) @@
203
204
// File Browser directories exists?
205
echo strip_tags($_lang['checking_if_images_exist']);
206
switch(true){
207
    case !file_exists($path."../assets/images"):
208
    case !file_exists($path."../assets/files"):
209
    case !file_exists($path."../assets/backup"):
210
    //case !file_exists("../assets/.thumbs"):
211
        $errors++;
212
        echo $_lang['failed'] . PHP_EOL;
213
        break;
214
    default:
215
        echo $_lang['ok'] . PHP_EOL;
216
}
217
218
219
// File Browser directories writable?
@@ 221-231 (lines=11) @@
218
219
// File Browser directories writable?
220
echo strip_tags($_lang['checking_if_images_writable']);
221
switch(true){
222
    case !is_writable($path."../assets/images"):
223
    case !is_writable($path."../assets/files"):
224
    case !is_writable($path."../assets/backup"):
225
    //case !is_writable("../assets/.thumbs"):
226
        $errors++;
227
        echo $_lang['failed'] . PHP_EOL;
228
        break;
229
    default:
230
        echo $_lang['ok'] . PHP_EOL;
231
}
232
233
234
// export exists?