Passed
Push — master ( 3c2dd0...7c6e77 )
by Robin
10:46 queued 14s
created
apps/files_versions/lib/BackgroundJob/ExpireVersions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 			return;
67 67
 		}
68 68
 
69
-		$this->userManager->callForSeenUsers(function (IUser $user) {
69
+		$this->userManager->callForSeenUsers(function(IUser $user) {
70 70
 			$uid = $user->getUID();
71 71
 			if (!$this->setupFS($uid)) {
72 72
 				return;
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 		\OC_Util::setupFS($user);
86 86
 
87 87
 		// Check if this user has a versions directory
88
-		$view = new \OC\Files\View('/' . $user);
88
+		$view = new \OC\Files\View('/'.$user);
89 89
 		if (!$view->is_dir('/files_versions')) {
90 90
 			return false;
91 91
 		}
Please login to merge, or discard this patch.
core/Command/Integrity/SignCore.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
 			$this->checker->writeCoreSignature($x509, $rsa, $path);
100 100
 			$output->writeln('Successfully signed "core"');
101 101
 		} catch (\Exception $e) {
102
-			$output->writeln('Error: ' . $e->getMessage());
102
+			$output->writeln('Error: '.$e->getMessage());
103 103
 			return 1;
104 104
 		}
105 105
 		return 0;
Please login to merge, or discard this patch.
core/Command/Integrity/SignApp.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 			$documentationUrl = $this->urlGenerator->linkToDocs('developer-code-integrity');
82 82
 			$output->writeln('This command requires the --path, --privateKey and --certificate.');
83 83
 			$output->writeln('Example: ./occ integrity:sign-app --path="/Users/lukasreschke/Programming/myapp/" --privateKey="/Users/lukasreschke/private/myapp.key" --certificate="/Users/lukasreschke/public/mycert.crt"');
84
-			$output->writeln('For more information please consult the documentation: '. $documentationUrl);
84
+			$output->writeln('For more information please consult the documentation: '.$documentationUrl);
85 85
 			return null;
86 86
 		}
87 87
 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 			$this->checker->writeAppSignature($path, $x509, $rsa);
108 108
 			$output->writeln('Successfully signed "'.$path.'"');
109 109
 		} catch (\Exception $e) {
110
-			$output->writeln('Error: ' . $e->getMessage());
110
+			$output->writeln('Error: '.$e->getMessage());
111 111
 			return 1;
112 112
 		}
113 113
 		return 0;
Please login to merge, or discard this patch.
core/Command/TwoFactorAuth/Base.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 	 */
52 52
 	public function completeArgumentValues($argumentName, CompletionContext $context) {
53 53
 		if ($argumentName === 'uid') {
54
-			return array_map(function (IUser $user) {
54
+			return array_map(function(IUser $user) {
55 55
 				return $user->getUID();
56 56
 			}, $this->userManager->search($context->getCurrentWord(), 100));
57 57
 		}
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
@@ -63,13 +63,13 @@
 block discarded – undo
63 63
 
64 64
 		$lastLogin = $user->getLastLogin();
65 65
 		if ($lastLogin === 0) {
66
-			$output->writeln('User ' . $user->getUID() .
66
+			$output->writeln('User '.$user->getUID().
67 67
 				' has never logged in, yet.');
68 68
 		} else {
69 69
 			$date = new \DateTime();
70 70
 			$date->setTimestamp($lastLogin);
71
-			$output->writeln($user->getUID() .
72
-				'`s last login: ' . $date->format('d.m.Y H:i'));
71
+			$output->writeln($user->getUID().
72
+				'`s last login: '.$date->format('d.m.Y H:i'));
73 73
 		}
74 74
 	}
75 75
 }
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
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 	protected function execute(InputInterface $input, OutputInterface $output) {
51 51
 		$errors = \OC_Util::checkServer($this->config);
52 52
 		if (!empty($errors)) {
53
-			$errors = array_map(function ($item) {
53
+			$errors = array_map(function($item) {
54 54
 				return (string) $item['error'];
55 55
 			}, $errors);
56 56
 
Please login to merge, or discard this patch.
core/Command/Encryption/ListModules.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,11 +67,11 @@
 block discarded – undo
67 67
 	 */
68 68
 	protected function writeModuleList(InputInterface $input, OutputInterface $output, $items) {
69 69
 		if ($input->getOption('output') === self::OUTPUT_FORMAT_PLAIN) {
70
-			array_walk($items, function (&$item) {
70
+			array_walk($items, function(&$item) {
71 71
 				if (!$item['default']) {
72 72
 					$item = $item['displayName'];
73 73
 				} else {
74
-					$item = $item['displayName'] . ' [default*]';
74
+					$item = $item['displayName'].' [default*]';
75 75
 				}
76 76
 			});
77 77
 		}
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
@@ -70,9 +70,9 @@
 block discarded – undo
70 70
 			if ($defaultModule === null) {
71 71
 				$output->writeln('<error>No default module is set</error>');
72 72
 			} elseif (!isset($modules[$defaultModule])) {
73
-				$output->writeln('<error>The current default module does not exist: ' . $defaultModule . '</error>');
73
+				$output->writeln('<error>The current default module does not exist: '.$defaultModule.'</error>');
74 74
 			} else {
75
-				$output->writeln('Default module: ' . $defaultModule);
75
+				$output->writeln('Default module: '.$defaultModule);
76 76
 			}
77 77
 		}
78 78
 	}
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
@@ -58,11 +58,11 @@
 block discarded – undo
58 58
 		$moduleId = $input->getArgument('module');
59 59
 
60 60
 		if ($moduleId === $this->encryptionManager->getDefaultEncryptionModuleId()) {
61
-			$output->writeln('"' . $moduleId . '"" is already the default module');
61
+			$output->writeln('"'.$moduleId.'"" is already the default module');
62 62
 		} elseif ($this->encryptionManager->setDefaultEncryptionModule($moduleId)) {
63
-			$output->writeln('<info>Set default module to "' . $moduleId . '"</info>');
63
+			$output->writeln('<info>Set default module to "'.$moduleId.'"</info>');
64 64
 		} else {
65
-			$output->writeln('<error>The specified module "' . $moduleId . '" does not exist</error>');
65
+			$output->writeln('<error>The specified module "'.$moduleId.'" does not exist</error>');
66 66
 		}
67 67
 	}
68 68
 }
Please login to merge, or discard this patch.