Passed
Push — master ( c2dddf...46e6c4 )
by Joas
14:48 queued 13s
created
core/Command/Db/Migrations/StatusCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,10 +62,10 @@
 block discarded – undo
62 62
 			if (is_array($value)) {
63 63
 				$output->writeln("    <comment>>></comment> $key:");
64 64
 				foreach ($value as $subKey => $subValue) {
65
-					$output->writeln("        <comment>>></comment> $subKey: " . str_repeat(' ', 46 - strlen($subKey)) . $subValue);
65
+					$output->writeln("        <comment>>></comment> $subKey: ".str_repeat(' ', 46 - strlen($subKey)).$subValue);
66 66
 				}
67 67
 			} else {
68
-				$output->writeln("    <comment>>></comment> $key: " . str_repeat(' ', 50 - strlen($key)) . $value);
68
+				$output->writeln("    <comment>>></comment> $key: ".str_repeat(' ', 50 - strlen($key)).$value);
69 69
 			}
70 70
 		}
71 71
 		return 0;
Please login to merge, or discard this patch.
core/Command/Config/Import.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 		try {
72 72
 			$configs = $this->validateFileContent($content);
73 73
 		} catch (\UnexpectedValueException $e) {
74
-			$output->writeln('<error>' . $e->getMessage(). '</error>');
74
+			$output->writeln('<error>'.$e->getMessage().'</error>');
75 75
 			return 1;
76 76
 		}
77 77
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 			}
92 92
 		}
93 93
 
94
-		$output->writeln('<info>Config successfully imported from: ' . $importFile . '</info>');
94
+		$output->writeln('<info>Config successfully imported from: '.$importFile.'</info>');
95 95
 		return 0;
96 96
 	}
97 97
 
@@ -145,10 +145,10 @@  discard block
 block discarded – undo
145 145
 		$additionalKeys = array_diff($arrayKeys, $this->validRootKeys);
146 146
 		$commonKeys = array_intersect($arrayKeys, $this->validRootKeys);
147 147
 		if (!empty($additionalKeys)) {
148
-			throw new \UnexpectedValueException('Found invalid entries in root: ' . implode(', ', $additionalKeys));
148
+			throw new \UnexpectedValueException('Found invalid entries in root: '.implode(', ', $additionalKeys));
149 149
 		}
150 150
 		if (empty($commonKeys)) {
151
-			throw new \UnexpectedValueException('At least one key of the following is expected: ' . implode(', ', $this->validRootKeys));
151
+			throw new \UnexpectedValueException('At least one key of the following is expected: '.implode(', ', $this->validRootKeys));
152 152
 		}
153 153
 
154 154
 		if (isset($array['system'])) {
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
 	 */
177 177
 	protected function checkTypeRecursively($configValue, $configName) {
178 178
 		if (!is_array($configValue) && !is_bool($configValue) && !is_int($configValue) && !is_string($configValue) && !is_null($configValue)) {
179
-			throw new \UnexpectedValueException('Invalid system config value for "' . $configName . '". Only arrays, bools, integers, strings and null (delete) are allowed.');
179
+			throw new \UnexpectedValueException('Invalid system config value for "'.$configName.'". Only arrays, bools, integers, strings and null (delete) are allowed.');
180 180
 		}
181 181
 		if (is_array($configValue)) {
182 182
 			foreach ($configValue as $key => $value) {
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
 		foreach ($array as $app => $configs) {
195 195
 			foreach ($configs as $name => $value) {
196 196
 				if (!is_int($value) && !is_string($value) && !is_null($value)) {
197
-					throw new \UnexpectedValueException('Invalid app config value for "' . $app . '":"' . $name . '". Only integers, strings and null (delete) are allowed.');
197
+					throw new \UnexpectedValueException('Invalid app config value for "'.$app.'":"'.$name.'". Only integers, strings and null (delete) are allowed.');
198 198
 				}
199 199
 			}
200 200
 		}
Please login to merge, or discard this patch.
core/Command/User/LastSeen.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,13 +65,13 @@
 block discarded – undo
65 65
 
66 66
 		$lastLogin = $user->getLastLogin();
67 67
 		if ($lastLogin === 0) {
68
-			$output->writeln('User ' . $user->getUID() .
68
+			$output->writeln('User '.$user->getUID().
69 69
 				' has never logged in, yet.');
70 70
 		} else {
71 71
 			$date = new \DateTime();
72 72
 			$date->setTimestamp($lastLogin);
73
-			$output->writeln($user->getUID() .
74
-				'`s last login: ' . $date->format('d.m.Y H:i'));
73
+			$output->writeln($user->getUID().
74
+				'`s last login: '.$date->format('d.m.Y H:i'));
75 75
 		}
76 76
 		return 0;
77 77
 	}
Please login to merge, or discard this patch.
core/Command/Security/ListCertificates.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 	protected function execute(InputInterface $input, OutputInterface $output): int {
54 54
 		$outputType = $input->getOption('output');
55 55
 		if ($outputType === self::OUTPUT_FORMAT_JSON || $outputType === self::OUTPUT_FORMAT_JSON_PRETTY) {
56
-			$certificates = array_map(function (ICertificate $certificate) {
56
+			$certificates = array_map(function(ICertificate $certificate) {
57 57
 				return [
58 58
 					'name' => $certificate->getName(),
59 59
 					'common_name' => $certificate->getCommonName(),
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 				'Issued By'
80 80
 			]);
81 81
 
82
-			$rows = array_map(function (ICertificate $certificate) {
82
+			$rows = array_map(function(ICertificate $certificate) {
83 83
 				return [
84 84
 					$certificate->getName(),
85 85
 					$certificate->getCommonName(),
Please login to merge, or discard this patch.
core/Command/Group/Delete.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -58,18 +58,18 @@
 block discarded – undo
58 58
 	protected function execute(InputInterface $input, OutputInterface $output): int {
59 59
 		$gid = $input->getArgument('groupid');
60 60
 		if ($gid === 'admin') {
61
-			$output->writeln('<error>Group "' . $gid . '" could not be deleted.</error>');
61
+			$output->writeln('<error>Group "'.$gid.'" could not be deleted.</error>');
62 62
 			return 1;
63 63
 		}
64
-		if (! $this->groupManager->groupExists($gid)) {
65
-			$output->writeln('<error>Group "' . $gid . '" does not exist.</error>');
64
+		if (!$this->groupManager->groupExists($gid)) {
65
+			$output->writeln('<error>Group "'.$gid.'" does not exist.</error>');
66 66
 			return 1;
67 67
 		}
68 68
 		$group = $this->groupManager->get($gid);
69 69
 		if ($group->delete()) {
70
-			$output->writeln('Group "' . $gid . '" was removed');
70
+			$output->writeln('Group "'.$gid.'" was removed');
71 71
 		} else {
72
-			$output->writeln('<error>Group "' . $gid . '" could not be deleted. Please check the logs.</error>');
72
+			$output->writeln('<error>Group "'.$gid.'" could not be deleted. Please check the logs.</error>');
73 73
 			return 1;
74 74
 		}
75 75
 		return 0;
Please login to merge, or discard this patch.
core/Command/Encryption/Enable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,10 +73,10 @@
 block discarded – undo
73 73
 				$output->writeln('<error>No default module is set</error>');
74 74
 				return 1;
75 75
 			} elseif (!isset($modules[$defaultModule])) {
76
-				$output->writeln('<error>The current default module does not exist: ' . $defaultModule . '</error>');
76
+				$output->writeln('<error>The current default module does not exist: '.$defaultModule.'</error>');
77 77
 				return 1;
78 78
 			} else {
79
-				$output->writeln('Default module: ' . $defaultModule);
79
+				$output->writeln('Default module: '.$defaultModule);
80 80
 			}
81 81
 		}
82 82
 		return 0;
Please login to merge, or discard this patch.
core/Command/Encryption/SetDefaultModule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,11 +76,11 @@
 block discarded – undo
76 76
 		$moduleId = $input->getArgument('module');
77 77
 
78 78
 		if ($moduleId === $this->encryptionManager->getDefaultEncryptionModuleId()) {
79
-			$output->writeln('"' . $moduleId . '"" is already the default module');
79
+			$output->writeln('"'.$moduleId.'"" is already the default module');
80 80
 		} elseif ($this->encryptionManager->setDefaultEncryptionModule($moduleId)) {
81
-			$output->writeln('<info>Set default module to "' . $moduleId . '"</info>');
81
+			$output->writeln('<info>Set default module to "'.$moduleId.'"</info>');
82 82
 		} else {
83
-			$output->writeln('<error>The specified module "' . $moduleId . '" does not exist</error>');
83
+			$output->writeln('<error>The specified module "'.$moduleId.'" does not exist</error>');
84 84
 			return 1;
85 85
 		}
86 86
 		return 0;
Please login to merge, or discard this patch.
core/Command/Check.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 	protected function execute(InputInterface $input, OutputInterface $output): int {
54 54
 		$errors = \OC_Util::checkServer($this->config);
55 55
 		if (!empty($errors)) {
56
-			$errors = array_map(function ($item) {
56
+			$errors = array_map(function($item) {
57 57
 				return (string) $item['error'];
58 58
 			}, $errors);
59 59
 
Please login to merge, or discard this patch.
apps/encryption/lib/Command/RecoverUser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,13 +84,13 @@
 block discarded – undo
84 84
 		$uid = $input->getArgument('user');
85 85
 		$userExists = $this->userManager->userExists($uid);
86 86
 		if ($userExists === false) {
87
-			$output->writeln('User "' . $uid . '" unknown.');
87
+			$output->writeln('User "'.$uid.'" unknown.');
88 88
 			return 1;
89 89
 		}
90 90
 
91 91
 		$recoveryKeyEnabled = $this->util->isRecoveryEnabledForUser($uid);
92 92
 		if ($recoveryKeyEnabled === false) {
93
-			$output->writeln('Recovery key is not enabled for: ' . $uid);
93
+			$output->writeln('Recovery key is not enabled for: '.$uid);
94 94
 			return 1;
95 95
 		}
96 96
 
Please login to merge, or discard this patch.