Code Duplication    Length = 7-7 lines in 2 locations

install/cli-install.php 2 locations

@@ 348-354 (lines=7) @@
345
// check table prefix
346
if ($conn && $installMode == 0) {
347
    echo $_lang['checking_table_prefix'] . $table_prefix . '`: ';
348
    if ($rs = mysqli_query($conn, "SELECT COUNT(*) FROM $dbase.`" . $table_prefix . "site_content`")) {
349
        echo $_lang['failed'] . ' ' . $_lang['table_prefix_already_inuse_note'] . PHP_EOL;
350
        $errors++;
351
352
    } else {
353
        echo $_lang['ok'] . PHP_EOL;
354
    }
355
} elseif ($conn && $installMode == 2) {
356
    echo $_lang['checking_table_prefix'] . $table_prefix . '`: ';
357
    if (!$rs = mysqli_query($conn, "SELECT COUNT(*) FROM $dbase.`" . $table_prefix . "site_content`")) {
@@ 357-363 (lines=7) @@
354
    }
355
} elseif ($conn && $installMode == 2) {
356
    echo $_lang['checking_table_prefix'] . $table_prefix . '`: ';
357
    if (!$rs = mysqli_query($conn, "SELECT COUNT(*) FROM $dbase.`" . $table_prefix . "site_content`")) {
358
        echo $_lang['failed'] . ' ' . $_lang['table_prefix_not_exist'] . PHP_EOL;
359
        $errors++;
360
361
    } else {
362
        echo $_lang['ok'] . PHP_EOL;
363
    }
364
}
365
366
// check mysql version