@@ -111,13 +111,13 @@ discard block |
||
111 | 111 | |
112 | 112 | if ($this->memoryInfo->isMemoryLimitSufficient() === false) { |
113 | 113 | $output->getErrorOutput()->writeln( |
114 | - '<comment>The current PHP memory limit ' . |
|
114 | + '<comment>The current PHP memory limit '. |
|
115 | 115 | 'is below the recommended value of 512MB.</comment>' |
116 | 116 | ); |
117 | 117 | } |
118 | 118 | |
119 | 119 | try { |
120 | - require_once __DIR__ . '/../../../core/register_command.php'; |
|
120 | + require_once __DIR__.'/../../../core/register_command.php'; |
|
121 | 121 | if ($this->config->getSystemValue('installed', false)) { |
122 | 122 | if (\OCP\Util::needUpgrade()) { |
123 | 123 | throw new NeedsUpdateException(); |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | } |
138 | 138 | // load from register_command.php |
139 | 139 | \OC_App::registerAutoloading($app, $appPath); |
140 | - $file = $appPath . '/appinfo/register_command.php'; |
|
140 | + $file = $appPath.'/appinfo/register_command.php'; |
|
141 | 141 | if (file_exists($file)) { |
142 | 142 | try { |
143 | 143 | require $file; |
@@ -161,8 +161,8 @@ discard block |
||
161 | 161 | $errors = \OC_Util::checkServer(\OC::$server->getSystemConfig()); |
162 | 162 | if (!empty($errors)) { |
163 | 163 | foreach ($errors as $error) { |
164 | - $output->writeln((string)$error['error']); |
|
165 | - $output->writeln((string)$error['hint']); |
|
164 | + $output->writeln((string) $error['error']); |
|
165 | + $output->writeln((string) $error['hint']); |
|
166 | 166 | $output->writeln(''); |
167 | 167 | } |
168 | 168 | throw new \Exception("Environment not properly prepared."); |
@@ -186,8 +186,8 @@ discard block |
||
186 | 186 | && $input->getArgument('command') !== 'maintenance:mode') { |
187 | 187 | $errOutput = $output->getErrorOutput(); |
188 | 188 | $errOutput->writeln( |
189 | - '<comment>Nextcloud is in maintenance mode - ' . |
|
190 | - 'no apps have been loaded</comment>' . PHP_EOL |
|
189 | + '<comment>Nextcloud is in maintenance mode - '. |
|
190 | + 'no apps have been loaded</comment>'.PHP_EOL |
|
191 | 191 | ); |
192 | 192 | } |
193 | 193 | } |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | try { |
225 | 225 | $c = new $command(); |
226 | 226 | } catch (\ArgumentCountError $e2) { |
227 | - throw new \Exception("Failed to construct console command '$command': " . $e->getMessage(), 0, $e); |
|
227 | + throw new \Exception("Failed to construct console command '$command': ".$e->getMessage(), 0, $e); |
|
228 | 228 | } |
229 | 229 | } else { |
230 | 230 | throw new \Exception("Console command '$command' is unknown and could not be loaded"); |