Code Duplication    Length = 6-6 lines in 2 locations

install/cli-install.php 1 location

@@ 1584-1589 (lines=6) @@
1581
                echo mysqli_error($sqlParser->conn) . PHP_EOL;
1582
1583
                return;
1584
            } else {
1585
                if (mysqli_num_rows($ds) != 0) {
1586
                    mysqli_query($sqlParser->conn,
1587
                        'UPDATE ' . $dbase . '`' . $sqlParser->prefix . 'site_' . $dependency['table'] . '` SET moduleguid = ' . $moduleGuid . ' WHERE id=' . $extraId);
1588
                    echo $dependency['name'] . ': ' . $_lang['guid_set'] . PHP_EOL;
1589
                }
1590
            }
1591
        }
1592
    }

install/src/controllers/install.php 1 location

@@ 716-721 (lines=6) @@
713
            if (!$ds) {
714
                echo "<p>" . mysqli_error($sqlParser->conn) . "</p>";
715
                return;
716
            } else {
717
                if (mysqli_num_rows($ds) != 0) {
718
                    mysqli_query($sqlParser->conn, 'UPDATE ' . $dbase . '`' . $sqlParser->prefix . 'site_' . $dependency['table'] . '` SET moduleguid = ' . $moduleGuid . ' WHERE id=' . $extraId);
719
                    echo '<p>&nbsp;&nbsp;' . $dependency['name'] . ': <span class="ok">' . $_lang['guid_set'] . '</span></p>';
720
                }
721
            }
722
        }
723
    }
724
}