Passed
Push — master ( d52ee8...0e6e80 )
by Joas
52:59 queued 30:23
created
apps/files_external/lib/Service/UserGlobalStoragesService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
 		$result = [];
117 117
 		foreach ($storagesByMountpoint as $storageList) {
118
-			$storage = array_reduce($storageList, function ($carry, $item) {
118
+			$storage = array_reduce($storageList, function($carry, $item) {
119 119
 				if (isset($carry)) {
120 120
 					$carryPriorityType = $this->getPriorityType($carry);
121 121
 					$itemPriorityType = $this->getPriorityType($item);
@@ -191,11 +191,11 @@  discard block
 block discarded – undo
191 191
 		$groupIds = $this->groupManager->getUserGroupIds($user);
192 192
 		$mounts = $this->dbConfig->getMountsForUser($user->getUID(), $groupIds);
193 193
 		$configs = array_map([$this, 'getStorageConfigFromDBMount'], $mounts);
194
-		$configs = array_filter($configs, function ($config) {
194
+		$configs = array_filter($configs, function($config) {
195 195
 			return $config instanceof StorageConfig;
196 196
 		});
197 197
 
198
-		$keys = array_map(function (StorageConfig $config) {
198
+		$keys = array_map(function(StorageConfig $config) {
199 199
 			return $config->getId();
200 200
 		}, $configs);
201 201
 
Please login to merge, or discard this patch.
apps/files_external/lib/BackgroundJob/CredentialsCleanup.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,10 +54,10 @@
 block discarded – undo
54 54
 	}
55 55
 
56 56
 	protected function run($argument) {
57
-		$this->userManager->callForSeenUsers(function (IUser $user) {
57
+		$this->userManager->callForSeenUsers(function(IUser $user) {
58 58
 			$storages = $this->userGlobalStoragesService->getAllStoragesForUser($user);
59 59
 
60
-			$usesLoginCredentials = array_reduce($storages, function (bool $uses, StorageConfig $storage) {
60
+			$usesLoginCredentials = array_reduce($storages, function(bool $uses, StorageConfig $storage) {
61 61
 				return $uses || $storage->getAuthMechanism() instanceof LoginCredentials;
62 62
 			}, false);
63 63
 
Please login to merge, or discard this patch.
apps/files_trashbin/lib/AppInfo/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
 		// pre and post-rename, disable trash logic for the copy+unlink case
67 67
 		\OCP\Util::connectHook('OC_Filesystem', 'delete', 'OCA\Files_Trashbin\Trashbin', 'ensureFileScannedHook');
68 68
 
69
-		\OCA\Files\App::getNavigationManager()->add(function () {
69
+		\OCA\Files\App::getNavigationManager()->add(function() {
70 70
 			$l = \OC::$server->getL10N('files_trashbin');
71 71
 			return [
72 72
 				'id' => 'trashbin',
Please login to merge, or discard this patch.
lib/private/Preview/Storage/Root.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 			 * Lets try the multibucket fallback if available
61 61
 			 */
62 62
 			if ($this->isMultibucketPreviewDistributionEnabled) {
63
-				return parent::getFolder('old-multibucket/' . $internalFolder);
63
+				return parent::getFolder('old-multibucket/'.$internalFolder);
64 64
 			}
65 65
 
66 66
 			// when there is no further fallback just throw the exception
@@ -82,6 +82,6 @@  discard block
 block discarded – undo
82 82
 	}
83 83
 
84 84
 	public static function getInternalFolder(string $name): string {
85
-		return implode('/', str_split(substr(md5($name), 0, 7))) . '/' . $name;
85
+		return implode('/', str_split(substr(md5($name), 0, 7))).'/'.$name;
86 86
 	}
87 87
 }
Please login to merge, or discard this patch.
core/Command/App/Update.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
 			try {
94 94
 				$this->manager->getAppPath($singleAppId);
95 95
 			} catch (\OCP\App\AppPathNotFoundException $e) {
96
-				$output->writeln($singleAppId . ' not installed');
96
+				$output->writeln($singleAppId.' not installed');
97 97
 				return 1;
98 98
 			}
99 99
 		} elseif ($input->getOption('all') || $input->getOption('showonly')) {
@@ -107,22 +107,22 @@  discard block
 block discarded – undo
107 107
 		foreach ($apps as $appId) {
108 108
 			$newVersion = $this->installer->isUpdateAvailable($appId, $input->getOption('allow-unstable'));
109 109
 			if ($newVersion) {
110
-				$output->writeln($appId . ' new version available: ' . $newVersion);
110
+				$output->writeln($appId.' new version available: '.$newVersion);
111 111
 
112 112
 				if (!$input->getOption('showonly')) {
113 113
 					try {
114 114
 						$result = $this->installer->updateAppstoreApp($appId, $input->getOption('allow-unstable'));
115 115
 					} catch (\Exception $e) {
116
-						$this->logger->logException($e, ['message' => 'Failure during update of app "' . $appId . '"','app' => 'app:update']);
117
-						$output->writeln('Error: ' . $e->getMessage());
116
+						$this->logger->logException($e, ['message' => 'Failure during update of app "'.$appId.'"', 'app' => 'app:update']);
117
+						$output->writeln('Error: '.$e->getMessage());
118 118
 						$return = 1;
119 119
 					}
120 120
 
121 121
 					if ($result === false) {
122
-						$output->writeln($appId . ' couldn\'t be updated');
122
+						$output->writeln($appId.' couldn\'t be updated');
123 123
 						$return = 1;
124 124
 					} elseif ($result === true) {
125
-						$output->writeln($appId . ' updated');
125
+						$output->writeln($appId.' updated');
126 126
 					}
127 127
 				}
128 128
 			}
Please login to merge, or discard this patch.
core/Command/App/Disable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,14 +72,14 @@
 block discarded – undo
72 72
 
73 73
 	private function disableApp(string $appId, OutputInterface $output): void {
74 74
 		if ($this->appManager->isInstalled($appId) === false) {
75
-			$output->writeln('No such app enabled: ' . $appId);
75
+			$output->writeln('No such app enabled: '.$appId);
76 76
 			return;
77 77
 		}
78 78
 
79 79
 		try {
80 80
 			$this->appManager->disableApp($appId);
81 81
 			$appVersion = \OC_App::getAppVersion($appId);
82
-			$output->writeln($appId . ' ' . $appVersion . ' disabled');
82
+			$output->writeln($appId.' '.$appVersion.' disabled');
83 83
 		} catch (\Exception $e) {
84 84
 			$output->writeln($e->getMessage());
85 85
 			$this->exitCode = 2;
Please login to merge, or discard this patch.
core/Command/App/Enable.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -102,12 +102,12 @@  discard block
 block discarded – undo
102 102
 	 * @param OutputInterface $output
103 103
 	 */
104 104
 	private function enableApp(string $appId, array $groupIds, bool $forceEnable, OutputInterface $output): void {
105
-		$groupNames = array_map(function (IGroup $group) {
105
+		$groupNames = array_map(function(IGroup $group) {
106 106
 			return $group->getDisplayName();
107 107
 		}, $groupIds);
108 108
 
109 109
 		if ($this->appManager->isInstalled($appId) && $groupIds === []) {
110
-			$output->writeln($appId . ' already enabled');
110
+			$output->writeln($appId.' already enabled');
111 111
 			return;
112 112
 		}
113 113
 
@@ -124,13 +124,13 @@  discard block
 block discarded – undo
124 124
 
125 125
 			if ($groupIds === []) {
126 126
 				$this->appManager->enableApp($appId, $forceEnable);
127
-				$output->writeln($appId . ' ' . $appVersion . ' enabled');
127
+				$output->writeln($appId.' '.$appVersion.' enabled');
128 128
 			} else {
129 129
 				$this->appManager->enableAppForGroups($appId, $groupIds, $forceEnable);
130
-				$output->writeln($appId . ' ' . $appVersion . ' enabled for groups: ' . implode(', ', $groupNames));
130
+				$output->writeln($appId.' '.$appVersion.' enabled for groups: '.implode(', ', $groupNames));
131 131
 			}
132 132
 		} catch (AppPathNotFoundException $e) {
133
-			$output->writeln($appId . ' not found');
133
+			$output->writeln($appId.' not found');
134 134
 			$this->exitCode = 1;
135 135
 		} catch (\Exception $e) {
136 136
 			$output->writeln($e->getMessage());
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 	 */
161 161
 	public function completeOptionValues($optionName, CompletionContext $context) {
162 162
 		if ($optionName === 'groups') {
163
-			return array_map(function (IGroup $group) {
163
+			return array_map(function(IGroup $group) {
164 164
 				return $group->getGID();
165 165
 			}, $this->groupManager->search($context->getCurrentWord()));
166 166
 		}
Please login to merge, or discard this patch.
core/Command/App/Remove.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -80,14 +80,14 @@  discard block
 block discarded – undo
80 80
 
81 81
 		// Check if the app is installed
82 82
 		if (!\OC_App::getAppPath($appId)) {
83
-			$output->writeln($appId . ' is not installed');
83
+			$output->writeln($appId.' is not installed');
84 84
 			return 1;
85 85
 		}
86 86
 
87 87
 		// Removing shipped apps is not possible, therefore we pre-check that
88 88
 		// before trying to remove it
89 89
 		if ($this->manager->isShipped($appId)) {
90
-			$output->writeln($appId . ' could not be removed as it is a shipped app');
90
+			$output->writeln($appId.' could not be removed as it is a shipped app');
91 91
 			return 1;
92 92
 		}
93 93
 
@@ -96,9 +96,9 @@  discard block
 block discarded – undo
96 96
 		if (!$input->getOption('keep-data')) {
97 97
 			try {
98 98
 				$this->manager->disableApp($appId);
99
-				$output->writeln($appId . ' disabled');
99
+				$output->writeln($appId.' disabled');
100 100
 			} catch (Throwable $e) {
101
-				$output->writeln('<error>Error: ' . $e->getMessage() . '</error>');
101
+				$output->writeln('<error>Error: '.$e->getMessage().'</error>');
102 102
 				$this->logger->logException($e, [
103 103
 					'app' => 'CLI',
104 104
 					'level' => ILogger::ERROR
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 		try {
112 112
 			$result = $this->installer->removeApp($appId);
113 113
 		} catch (Throwable $e) {
114
-			$output->writeln('<error>Error: ' . $e->getMessage() . '</error>');
114
+			$output->writeln('<error>Error: '.$e->getMessage().'</error>');
115 115
 			$this->logger->logException($e, [
116 116
 				'app' => 'CLI',
117 117
 				'level' => ILogger::ERROR
@@ -120,12 +120,12 @@  discard block
 block discarded – undo
120 120
 		}
121 121
 
122 122
 		if ($result === false) {
123
-			$output->writeln($appId . ' could not be removed');
123
+			$output->writeln($appId.' could not be removed');
124 124
 			return 1;
125 125
 		}
126 126
 
127 127
 		$appVersion = \OC_App::getAppVersion($appId);
128
-		$output->writeln($appId . ' ' . $appVersion . ' removed');
128
+		$output->writeln($appId.' '.$appVersion.' removed');
129 129
 
130 130
 		return 0;
131 131
 	}
Please login to merge, or discard this patch.
lib/private/Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDao.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 		$result = $query->execute();
61 61
 		$providers = [];
62 62
 		foreach ($result->fetchAll() as $row) {
63
-			$providers[$row['provider_id']] = 1 === (int)$row['enabled'];
63
+			$providers[$row['provider_id']] = 1 === (int) $row['enabled'];
64 64
 		}
65 65
 		$result->closeCursor();
66 66
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 			->where($qb2->expr()->eq('uid', $qb2->createNamedParameter($uid)));
115 115
 		$deleteQuery->execute();
116 116
 
117
-		return array_map(function (array $row) {
117
+		return array_map(function(array $row) {
118 118
 			return [
119 119
 				'provider_id' => $row['provider_id'],
120 120
 				'uid' => $row['uid'],
Please login to merge, or discard this patch.