@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Saito - The Threaded Web Forum |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | if ($hasSettingsTable) { |
66 | 66 | $this->log('Installer found Settings-table. Moving on to Updater.', LogLevel::INFO, ['saito.install']); |
67 | 67 | //// disable installer and move on to updater instead |
68 | - (new File(CONFIG . 'installer'))->delete(); |
|
68 | + (new File(CONFIG.'installer'))->delete(); |
|
69 | 69 | |
70 | 70 | return $this->redirect('/'); |
71 | 71 | } |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | |
115 | 115 | //// Setting a salt |
116 | 116 | $this->log('Installer setting salt.', LogLevel::INFO, ['saito.install']); |
117 | - $config = ROOT . DS . 'config' . DS . 'app.php'; |
|
117 | + $config = ROOT.DS.'config'.DS.'app.php'; |
|
118 | 118 | $content = file_get_contents($config); |
119 | 119 | $newKey = hash('sha256', Security::randomBytes(64)); |
120 | 120 | $content = str_replace('_SALT_', $newKey, $content, $count); |