Code Duplication    Length = 11-11 lines in 2 locations

install/upgrade_run_final.php 1 location

@@ 231-241 (lines=11) @@
228
mysqli_free_result($result);
229
230
// write to config file
231
if ($any_settings === true) {
232
    $result = fwrite(
233
        $file_handler,
234
        utf8_encode(
235
            "<?php
236
global \$SETTINGS;
237
\$SETTINGS = array (" . $config_text . "
238
    );"
239
        )
240
    );
241
}
242
fclose($file_handler);
243
244

install/upgrade_run_2.1.27.php 1 location

@@ 756-766 (lines=11) @@
753
mysqli_free_result($result);
754
755
// write to config file
756
if ($any_settings === true) {
757
    $result = fwrite(
758
        $file_handler,
759
        utf8_encode(
760
            "<?php
761
global \$SETTINGS;
762
\$SETTINGS = array (" . $config_text . "
763
    );"
764
        )
765
    );
766
}
767
fclose($file_handler);
768
769