@@ -104,13 +104,13 @@ discard block |
||
104 | 104 | |
105 | 105 | if ($this->memoryInfo->isMemoryLimitSufficient() === false) { |
106 | 106 | $output->getErrorOutput()->writeln( |
107 | - '<comment>The current PHP memory limit ' . |
|
107 | + '<comment>The current PHP memory limit '. |
|
108 | 108 | 'is below the recommended value of 512MB.</comment>' |
109 | 109 | ); |
110 | 110 | } |
111 | 111 | |
112 | 112 | try { |
113 | - require_once __DIR__ . '/../../../core/register_command.php'; |
|
113 | + require_once __DIR__.'/../../../core/register_command.php'; |
|
114 | 114 | if ($this->config->getSystemValue('installed', false)) { |
115 | 115 | if (\OCP\Util::needUpgrade()) { |
116 | 116 | throw new NeedsUpdateException(); |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | } |
132 | 132 | // load from register_command.php |
133 | 133 | \OC_App::registerAutoloading($app, $appPath); |
134 | - $file = $appPath . '/appinfo/register_command.php'; |
|
134 | + $file = $appPath.'/appinfo/register_command.php'; |
|
135 | 135 | if (file_exists($file)) { |
136 | 136 | try { |
137 | 137 | require $file; |
@@ -159,8 +159,8 @@ discard block |
||
159 | 159 | $errors = \OC_Util::checkServer(\OC::$server->getSystemConfig()); |
160 | 160 | if (!empty($errors)) { |
161 | 161 | foreach ($errors as $error) { |
162 | - $output->writeln((string)$error['error']); |
|
163 | - $output->writeln((string)$error['hint']); |
|
162 | + $output->writeln((string) $error['error']); |
|
163 | + $output->writeln((string) $error['hint']); |
|
164 | 164 | $output->writeln(''); |
165 | 165 | } |
166 | 166 | throw new \Exception("Environment not properly prepared."); |
@@ -185,8 +185,8 @@ discard block |
||
185 | 185 | && $input->getArgument('command') !== 'status') { |
186 | 186 | $errOutput = $output->getErrorOutput(); |
187 | 187 | $errOutput->writeln( |
188 | - '<comment>Nextcloud is in maintenance mode, hence the database isn\'t accessible.' . PHP_EOL . |
|
189 | - 'Cannot perform any command except \'maintenance:mode --off\'</comment>' . PHP_EOL |
|
188 | + '<comment>Nextcloud is in maintenance mode, hence the database isn\'t accessible.'.PHP_EOL. |
|
189 | + 'Cannot perform any command except \'maintenance:mode --off\'</comment>'.PHP_EOL |
|
190 | 190 | ); |
191 | 191 | } |
192 | 192 | } |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | try { |
224 | 224 | $c = new $command(); |
225 | 225 | } catch (\ArgumentCountError $e2) { |
226 | - throw new \Exception("Failed to construct console command '$command': " . $e->getMessage(), 0, $e); |
|
226 | + throw new \Exception("Failed to construct console command '$command': ".$e->getMessage(), 0, $e); |
|
227 | 227 | } |
228 | 228 | } else { |
229 | 229 | throw new \Exception("Console command '$command' is unknown and could not be loaded"); |