Completed
Push — master ( 6b730b...126a82 )
by Morris
11:40
created
lib/private/Setup.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,6 @@
 block discarded – undo
52 52
 use OCP\Defaults;
53 53
 use OCP\IL10N;
54 54
 use OCP\ILogger;
55
-use OCP\IUser;
56 55
 use OCP\Security\ISecureRandom;
57 56
 
58 57
 class Setup {
Please login to merge, or discard this patch.
core/Command/Maintenance/Install.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -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.