Code Duplication    Length = 6-6 lines in 2 locations

install/instprocessor.php 1 location

@@ 733-738 (lines=6) @@
730
			if (!$ds) {
731
				echo "<p>" . mysqli_error($sqlParser->conn) . "</p>";
732
				return;
733
			} else {
734
				if (mysqli_num_rows($ds) != 0) {
735
					mysqli_query($sqlParser->conn, 'UPDATE ' . $dbase . '`' . $sqlParser->prefix . 'site_' . $dependency['table'] . '` SET moduleguid = ' . $moduleGuid . ' WHERE id=' . $extraId);
736
					echo '<p>&nbsp;&nbsp;' . $dependency['name'] . ': <span class="ok">' . $_lang['guid_set'] . '</span></p>';
737
				}
738
			}
739
		}
740
	}
741
}

install/cli-install.php 1 location

@@ 1469-1474 (lines=6) @@
1466
            if (!$ds) {
1467
                echo mysqli_error($sqlParser->conn) . PHP_EOL;
1468
                return;
1469
            } else {
1470
                if (mysqli_num_rows($ds) != 0) {
1471
                    mysqli_query($sqlParser->conn, 'UPDATE ' . $dbase . '`' . $sqlParser->prefix . 'site_' . $dependency['table'] . '` SET moduleguid = ' . $moduleGuid . ' WHERE id=' . $extraId);
1472
                    echo $dependency['name'] . ': ' . $_lang['guid_set'] . PHP_EOL;
1473
                }
1474
            }
1475
        }
1476
    }
1477
}