|
@@ -90,8 +90,8 @@ discard block |
|
|
block discarded – undo |
|
90
|
90
|
$this->printErrors($output, $errors); |
|
91
|
91
|
|
|
92
|
92
|
// ignore the OS X setup warning |
|
93
|
|
- if(count($errors) !== 1 || |
|
94
|
|
- (string)$errors[0]['error'] !== 'Mac OS X is not supported and Nextcloud will not work properly on this platform. Use it at your own risk! ') { |
|
|
93
|
+ if (count($errors) !== 1 || |
|
|
94
|
+ (string) $errors[0]['error'] !== 'Mac OS X is not supported and Nextcloud will not work properly on this platform. Use it at your own risk! ') { |
|
95
|
95
|
return 1; |
|
96
|
96
|
} |
|
97
|
97
|
} |
|
@@ -172,7 +172,7 @@ discard block |
|
|
block discarded – undo |
|
172
|
172
|
} |
|
173
|
173
|
|
|
174
|
174
|
if ($adminEmail !== null && !filter_var($adminEmail, FILTER_VALIDATE_EMAIL)) { |
|
175
|
|
- throw new InvalidArgumentException('Invalid e-mail-address <' . $adminEmail . '> for <' . $adminLogin . '>.'); |
|
|
175
|
+ throw new InvalidArgumentException('Invalid e-mail-address <'.$adminEmail.'> for <'.$adminLogin.'>.'); |
|
176
|
176
|
} |
|
177
|
177
|
|
|
178
|
178
|
$options = [ |
|
@@ -201,10 +201,10 @@ discard block |
|
|
block discarded – undo |
|
201
|
201
|
protected function printErrors(OutputInterface $output, $errors) { |
|
202
|
202
|
foreach ($errors as $error) { |
|
203
|
203
|
if (is_array($error)) { |
|
204
|
|
- $output->writeln('<error>' . (string)$error['error'] . '</error>'); |
|
205
|
|
- $output->writeln('<info> -> ' . (string)$error['hint'] . '</info>'); |
|
|
204
|
+ $output->writeln('<error>'.(string) $error['error'].'</error>'); |
|
|
205
|
+ $output->writeln('<info> -> '.(string) $error['hint'].'</info>'); |
|
206
|
206
|
} else { |
|
207
|
|
- $output->writeln('<error>' . (string)$error . '</error>'); |
|
|
207
|
+ $output->writeln('<error>'.(string) $error.'</error>'); |
|
208
|
208
|
} |
|
209
|
209
|
} |
|
210
|
210
|
} |
Please login to merge, or discard this patch.