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

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