Code Duplication    Length = 11-11 lines in 2 locations

install/cli-install.php 2 locations

@@ 229-239 (lines=11) @@
226
227
// File Browser directories exists?
228
echo strip_tags($_lang['checking_if_images_exist']);
229
switch (true) {
230
    case !file_exists($path . "../assets/images"):
231
    case !file_exists($path . "../assets/files"):
232
    case !file_exists($path . "../assets/backup"):
233
        //case !file_exists("../assets/.thumbs"):
234
        $errors++;
235
        echo $_lang['failed'] . PHP_EOL;
236
        break;
237
    default:
238
        echo $_lang['ok'] . PHP_EOL;
239
}
240
241
242
// File Browser directories writable?
@@ 244-254 (lines=11) @@
241
242
// File Browser directories writable?
243
echo strip_tags($_lang['checking_if_images_writable']);
244
switch (true) {
245
    case !is_writable($path . "../assets/images"):
246
    case !is_writable($path . "../assets/files"):
247
    case !is_writable($path . "../assets/backup"):
248
        //case !is_writable("../assets/.thumbs"):
249
        $errors++;
250
        echo $_lang['failed'] . PHP_EOL;
251
        break;
252
    default:
253
        echo $_lang['ok'] . PHP_EOL;
254
}
255
256
257
// export exists?