Code Duplication    Length = 4-4 lines in 2 locations

install/cli-install.php 1 location

@@ 1375-1378 (lines=4) @@
1372
            } else {
1373
1374
                // disable legacy versions based on legacy_names provided
1375
                if (!empty($leg_names)) {
1376
                    $update_query = "UPDATE $dbase.`" . $table_prefix . "site_plugins` SET disabled='1' WHERE name IN ($leg_names);";
1377
                    $rs = mysqli_query($sqlParser->conn, $update_query);
1378
                }
1379
1380
                // Create the category if it does not already exist
1381
                $category = getCreateDbCategory($category, $sqlParser);

install/src/controllers/install.php 1 location

@@ 542-545 (lines=4) @@
539
            else {
540
541
                // disable legacy versions based on legacy_names provided
542
                if(!empty($leg_names)) {
543
                    $update_query = "UPDATE $dbase.`" . $table_prefix . "site_plugins` SET disabled='1' WHERE name IN ($leg_names);";
544
                    $rs = mysqli_query($sqlParser->conn, $update_query);
545
                }
546
547
                // Create the category if it does not already exist
548
                $category = getCreateDbCategory($category, $sqlParser);