@@ -91,14 +91,14 @@ discard block |
||
| 91 | 91 | $output->setVerbosity(OutputInterface::VERBOSITY_QUIET); |
| 92 | 92 | } |
| 93 | 93 | try { |
| 94 | - require_once __DIR__ . '/../../../core/register_command.php'; |
|
| 94 | + require_once __DIR__.'/../../../core/register_command.php'; |
|
| 95 | 95 | if ($this->config->getSystemValue('installed', false)) { |
| 96 | 96 | if (\OCP\Util::needUpgrade()) { |
| 97 | 97 | throw new NeedsUpdateException(); |
| 98 | 98 | } elseif ($this->config->getSystemValue('maintenance', false)) { |
| 99 | 99 | if ($input->getArgument('command') !== '_completion') { |
| 100 | 100 | $errOutput = $output->getErrorOutput(); |
| 101 | - $errOutput->writeln('<comment>Nextcloud is in maintenance mode - no apps have been loaded</comment>' . PHP_EOL); |
|
| 101 | + $errOutput->writeln('<comment>Nextcloud is in maintenance mode - no apps have been loaded</comment>'.PHP_EOL); |
|
| 102 | 102 | } |
| 103 | 103 | } else { |
| 104 | 104 | OC_App::loadApps(); |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | } |
| 115 | 115 | // load from register_command.php |
| 116 | 116 | \OC_App::registerAutoloading($app, $appPath); |
| 117 | - $file = $appPath . '/appinfo/register_command.php'; |
|
| 117 | + $file = $appPath.'/appinfo/register_command.php'; |
|
| 118 | 118 | if (file_exists($file)) { |
| 119 | 119 | try { |
| 120 | 120 | require $file; |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | } else if ($input->getArgument('command') !== '_completion') { |
| 128 | 128 | $output->writeln("Nextcloud is not installed - only a limited number of commands are available"); |
| 129 | 129 | } |
| 130 | - } catch(NeedsUpdateException $e) { |
|
| 130 | + } catch (NeedsUpdateException $e) { |
|
| 131 | 131 | if ($input->getArgument('command') !== '_completion') { |
| 132 | 132 | $output->writeln("Nextcloud or one of the apps require upgrade - only a limited number of commands are available"); |
| 133 | 133 | $output->writeln("You may use your browser or the occ upgrade command to do the upgrade"); |
@@ -138,8 +138,8 @@ discard block |
||
| 138 | 138 | $errors = \OC_Util::checkServer(\OC::$server->getSystemConfig()); |
| 139 | 139 | if (!empty($errors)) { |
| 140 | 140 | foreach ($errors as $error) { |
| 141 | - $output->writeln((string)$error['error']); |
|
| 142 | - $output->writeln((string)$error['hint']); |
|
| 141 | + $output->writeln((string) $error['error']); |
|
| 142 | + $output->writeln((string) $error['hint']); |
|
| 143 | 143 | $output->writeln(''); |
| 144 | 144 | } |
| 145 | 145 | throw new \Exception("Environment not properly prepared."); |