@@ -226,6 +226,7 @@ |
||
226 | 226 | |
227 | 227 | /** |
228 | 228 | * {@inheritdoc} |
229 | + * @param string $msg |
|
229 | 230 | */ |
230 | 231 | public function log($msg, $level = LogLevel::INFO, $context = ['saito.install']) |
231 | 232 | { |
@@ -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 |
@@ -242,6 +242,6 @@ discard block |
||
242 | 242 | { |
243 | 243 | InstallerState::set($action); |
244 | 244 | |
245 | - return $this->redirect('installer/' . $action); |
|
245 | + return $this->redirect('installer/'.$action); |
|
246 | 246 | } |
247 | 247 | } |
@@ -15,9 +15,6 @@ |
||
15 | 15 | use Cake\Core\Configure; |
16 | 16 | use Cake\Event\Event; |
17 | 17 | use Cake\Filesystem\File; |
18 | -use Cake\I18n\I18n; |
|
19 | -use Cake\ORM\Table; |
|
20 | -use Cake\ORM\TableRegistry; |
|
21 | 18 | use Installer\Form\UpdaterStartForm; |
22 | 19 | use Installer\Lib\DbVersion; |
23 | 20 | use Psr\Log\LogLevel; |
@@ -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 |
@@ -71,6 +71,6 @@ discard block |
||
71 | 71 | throw new \RuntimeException('TMP directory not available.', 1560524787); |
72 | 72 | } |
73 | 73 | |
74 | - return (new File(TMP . 'installer.state')); |
|
74 | + return (new File(TMP.'installer.state')); |
|
75 | 75 | } |
76 | 76 | } |
@@ -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 |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | ]; |
62 | 62 | |
63 | 63 | foreach ($actions as $action) { |
64 | - $this->get('installer/' . $action); |
|
64 | + $this->get('installer/'.$action); |
|
65 | 65 | $this->assertRedirect('/'); |
66 | 66 | } |
67 | 67 | } |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | $this->createSettings(); |
103 | 103 | (new DbVersion(TableRegistry::get('Settings')))->set('4.10.0'); |
104 | 104 | |
105 | - $token = new File(CONFIG . 'installer'); |
|
105 | + $token = new File(CONFIG.'installer'); |
|
106 | 106 | $this->assertTrue($token->exists()); |
107 | 107 | |
108 | 108 | $this->get('installer/connected'); |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | |
113 | 113 | private function createInstallerToken() |
114 | 114 | { |
115 | - (new File(CONFIG . 'installer'))->create(); |
|
115 | + (new File(CONFIG.'installer'))->create(); |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | private function createSettings() |