@@ -356,7 +356,7 @@ discard block |
||
356 | 356 | $this->conf->db->name = $config->main_db_name; |
357 | 357 | $this->conf->db->user = $config->main_db_user; |
358 | 358 | $this->conf->db->pass = $config->main_db_pass; |
359 | - $db = getDoliDBInstance($this->conf->db->type, $this->conf->db->host, $this->conf->db->user, $this->conf->db->pass, $this->conf->db->name, (int)$this->conf->db->port); |
|
359 | + $db = getDoliDBInstance($this->conf->db->type, $this->conf->db->host, $this->conf->db->user, $this->conf->db->pass, $this->conf->db->name, (int) $this->conf->db->port); |
|
360 | 360 | if ($db->connected && $db->database_selected) { |
361 | 361 | $ok = true; |
362 | 362 | } |
@@ -541,7 +541,7 @@ discard block |
||
541 | 541 | */ |
542 | 542 | private function getMigrationScript() |
543 | 543 | { |
544 | - $dir = BASE_PATH . "/../Dolibarr/Modules/Install/mysql/migration/"; // We use mysql migration scripts whatever is database driver |
|
544 | + $dir = BASE_PATH . "/../Dolibarr/Modules/Install/mysql/migration/"; // We use mysql migration scripts whatever is database driver |
|
545 | 545 | dolibarr_install_syslog("Scan sql files for migration files in " . $dir); |
546 | 546 | |
547 | 547 | // Get files list of migration file x.y.z-a.b.c.sql into /install/mysql/migration |
@@ -652,7 +652,7 @@ discard block |
||
652 | 652 | $this->config->db->user, |
653 | 653 | $this->config->db->pass, |
654 | 654 | $this->config->db->name, |
655 | - (int)$this->config->db->port |
|
655 | + (int) $this->config->db->port |
|
656 | 656 | ); |
657 | 657 | |
658 | 658 | dolibarr_install_syslog("Exit " . $ret); |
@@ -722,8 +722,8 @@ discard block |
||
722 | 722 | $newuser->admin = 1; |
723 | 723 | $newuser->entity = 0; |
724 | 724 | |
725 | - $conf->global->USER_MAIL_REQUIRED = 0; // Force global option to be sure to create a new user with no email |
|
726 | - $conf->global->USER_PASSWORD_GENERATED = ''; // To not use any rule for password validation |
|
725 | + $conf->global->USER_MAIL_REQUIRED = 0; // Force global option to be sure to create a new user with no email |
|
726 | + $conf->global->USER_PASSWORD_GENERATED = ''; // To not use any rule for password validation |
|
727 | 727 | |
728 | 728 | $result = $newuser->create($createuser, 1); |
729 | 729 | if ($result > 0) { |
@@ -890,9 +890,9 @@ discard block |
||
890 | 890 | // Only works if you are not in safe_mode. / Ne fonctionne que si on est pas en safe_mode. |
891 | 891 | |
892 | 892 | $err = error_reporting(); |
893 | - error_reporting(0); // Disable all errors |
|
893 | + error_reporting(0); // Disable all errors |
|
894 | 894 | //error_reporting(E_ALL); |
895 | - @set_time_limit(1800); // Need 1800 on some very slow OS like Windows 7/64 |
|
895 | + @set_time_limit(1800); // Need 1800 on some very slow OS like Windows 7/64 |
|
896 | 896 | error_reporting($err); |
897 | 897 | |
898 | 898 | $action = GETPOST('action', 'aZ09') ? GETPOST('action', 'aZ09') : (empty($argv[1]) ? '' : $argv[1]); |
@@ -1451,7 +1451,7 @@ discard block |
||
1451 | 1451 | // Force here a value we need after because master.inc.php is not loaded into step2. |
1452 | 1452 | // This code must be similar with the one into main.inc.php |
1453 | 1453 | |
1454 | - $this->vars->hash_unique_id = dol_hash('dolibarr' . $this->config->main->unique_id, 'sha256'); // Note: if the global salt changes, this hash changes too so ping may be counted twice. We don't mind. It is for statistics purpose only. |
|
1454 | + $this->vars->hash_unique_id = dol_hash('dolibarr' . $this->config->main->unique_id, 'sha256'); // Note: if the global salt changes, this hash changes too so ping may be counted twice. We don't mind. It is for statistics purpose only. |
|
1455 | 1455 | |
1456 | 1456 | return static::setIcons($checks); |
1457 | 1457 | } |
@@ -1507,7 +1507,7 @@ discard block |
||
1507 | 1507 | $this->vars->root_user, |
1508 | 1508 | $this->vars->root_pass, |
1509 | 1509 | 'User an database creation', |
1510 | - (int)$this->config->db->port |
|
1510 | + (int) $this->config->db->port |
|
1511 | 1511 | ); |
1512 | 1512 | |
1513 | 1513 | if ($this->vars->create_database) { |
@@ -1545,7 +1545,7 @@ discard block |
||
1545 | 1545 | $this->config->db->user, |
1546 | 1546 | $this->config->db->pass, |
1547 | 1547 | $this->config->db->name, |
1548 | - (int)$this->config->db->port |
|
1548 | + (int) $this->config->db->port |
|
1549 | 1549 | ); |
1550 | 1550 | |
1551 | 1551 | if (!$db->ok) { |
@@ -1780,7 +1780,7 @@ discard block |
||
1780 | 1780 | fwrite($fp, '$dolibarr_main_db_host=\'' . dol_escape_php(trim($this->config->db->host), 1) . '\';'); |
1781 | 1781 | fwrite($fp, "\n"); |
1782 | 1782 | |
1783 | - fwrite($fp, '$dolibarr_main_db_port=\'' . ((int)$this->config->db->port) . '\';'); |
|
1783 | + fwrite($fp, '$dolibarr_main_db_port=\'' . ((int) $this->config->db->port) . '\';'); |
|
1784 | 1784 | fwrite($fp, "\n"); |
1785 | 1785 | |
1786 | 1786 | fwrite($fp, '$dolibarr_main_db_name=\'' . dol_escape_php(trim($this->config->db->name), 1) . '\';'); |