Code Duplication    Length = 6-6 lines in 2 locations

install/cli-install.php 1 location

@@ 1453-1458 (lines=6) @@
1450
			if (!$ds) {
1451
				echo mysqli_error($sqlParser->conn) . PHP_EOL;
1452
				return;
1453
			} else {
1454
				if (mysqli_num_rows($ds) != 0) {
1455
					mysqli_query($sqlParser->conn, 'UPDATE ' . $dbase . '`' . $sqlParser->prefix . 'site_' . $dependency['table'] . '` SET moduleguid = ' . $moduleGuid . ' WHERE id=' . $extraId);
1456
					echo $dependency['name'] . ': ' . $_lang['guid_set'] . PHP_EOL;
1457
				}
1458
			}
1459
		}
1460
	}
1461
}

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
}