Passed
Push — master ( 052ddc...675ec9 )
by Joas
13:56 queued 13s
created
core/Command/Maintenance/Install.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
 			// ignore the OS X setup warning
95 95
 			if (count($errors) !== 1 ||
96
-				(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! ') {
96
+				(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! ') {
97 97
 				return 1;
98 98
 			}
99 99
 		}
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 		}
137 137
 		if ($dbPort) {
138 138
 			// Append the port to the host so it is the same as in the config (there is no dbport config)
139
-			$dbHost .= ':' . $dbPort;
139
+			$dbHost .= ':'.$dbPort;
140 140
 		}
141 141
 		if ($input->hasParameterOption('--database-pass')) {
142 142
 			$dbPass = (string) $input->getOption('database-pass');
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 		}
174 174
 
175 175
 		if ($adminEmail !== null && !filter_var($adminEmail, FILTER_VALIDATE_EMAIL)) {
176
-			throw new InvalidArgumentException('Invalid e-mail-address <' . $adminEmail . '> for <' . $adminLogin . '>.');
176
+			throw new InvalidArgumentException('Invalid e-mail-address <'.$adminEmail.'> for <'.$adminLogin.'>.');
177 177
 		}
178 178
 
179 179
 		$options = [
@@ -200,10 +200,10 @@  discard block
 block discarded – undo
200 200
 	protected function printErrors(OutputInterface $output, $errors) {
201 201
 		foreach ($errors as $error) {
202 202
 			if (is_array($error)) {
203
-				$output->writeln('<error>' . (string)$error['error'] . '</error>');
204
-				$output->writeln('<info> -> ' . (string)$error['hint'] . '</info>');
203
+				$output->writeln('<error>'.(string) $error['error'].'</error>');
204
+				$output->writeln('<info> -> '.(string) $error['hint'].'</info>');
205 205
 			} else {
206
-				$output->writeln('<error>' . (string)$error . '</error>');
206
+				$output->writeln('<error>'.(string) $error.'</error>');
207 207
 			}
208 208
 		}
209 209
 	}
Please login to merge, or discard this patch.