Passed
Push — master ( a78624...b981cb )
by Christoph
14:14 queued 11s
created
apps/dav/lib/SystemTag/SystemTagsRelationsCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,8 @@
 block discarded – undo
60 60
 				$tagMapper,
61 61
 				$userSession,
62 62
 				$groupManager,
63
-				function ($name) {
64
-					$nodes = \OC::$server->getUserFolder()->getById((int)$name);
63
+				function($name) {
64
+					$nodes = \OC::$server->getUserFolder()->getById((int) $name);
65 65
 					return !empty($nodes);
66 66
 				}
67 67
 			),
Please login to merge, or discard this patch.
apps/dav/lib/Controller/BirthdayCalendarController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
 		$this->config->setAppValue($this->appName, 'generateBirthdayCalendar', 'yes');
95 95
 
96 96
 		// add background job for each user
97
-		$this->userManager->callForSeenUsers(function (IUser $user) {
97
+		$this->userManager->callForSeenUsers(function(IUser $user) {
98 98
 			$this->jobList->add(GenerateBirthdayCalendarBackgroundJob::class, [
99 99
 				'userId' => $user->getUID(),
100 100
 			]);
Please login to merge, or discard this patch.
apps/dav/lib/Upload/UploadHome.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 	}
45 45
 
46 46
 	public function createFile($name, $data = null) {
47
-		throw new Forbidden('Permission denied to create file (filename ' . $name . ')');
47
+		throw new Forbidden('Permission denied to create file (filename '.$name.')');
48 48
 	}
49 49
 
50 50
 	public function createDirectory($name) {
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 	}
60 60
 
61 61
 	public function getChildren(): array {
62
-		return array_map(function ($node) {
62
+		return array_map(function($node) {
63 63
 			return new UploadFolder($node, $this->cleanupService);
64 64
 		}, $this->impl()->getChildren());
65 65
 	}
@@ -92,10 +92,10 @@  discard block
 block discarded – undo
92 92
 		$rootView = new View();
93 93
 		$user = \OC::$server->getUserSession()->getUser();
94 94
 		Filesystem::initMountPoints($user->getUID());
95
-		if (!$rootView->file_exists('/' . $user->getUID() . '/uploads')) {
96
-			$rootView->mkdir('/' . $user->getUID() . '/uploads');
95
+		if (!$rootView->file_exists('/'.$user->getUID().'/uploads')) {
96
+			$rootView->mkdir('/'.$user->getUID().'/uploads');
97 97
 		}
98
-		$view = new View('/' . $user->getUID() . '/uploads');
98
+		$view = new View('/'.$user->getUID().'/uploads');
99 99
 		$rootInfo = $view->getFileInfo('');
100 100
 		return new Directory($view, $rootInfo);
101 101
 	}
Please login to merge, or discard this patch.
apps/dav/lib/Connector/Sabre/SharesPlugin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -197,17 +197,17 @@
 block discarded – undo
197 197
 			}
198 198
 		}
199 199
 
200
-		$propFind->handle(self::SHARETYPES_PROPERTYNAME, function () use ($sabreNode) {
200
+		$propFind->handle(self::SHARETYPES_PROPERTYNAME, function() use ($sabreNode) {
201 201
 			$shares = $this->getShares($sabreNode);
202 202
 
203
-			$shareTypes = array_unique(array_map(function (IShare $share) {
203
+			$shareTypes = array_unique(array_map(function(IShare $share) {
204 204
 				return $share->getShareType();
205 205
 			}, $shares));
206 206
 
207 207
 			return new ShareTypeList($shareTypes);
208 208
 		});
209 209
 
210
-		$propFind->handle(self::SHAREES_PROPERTYNAME, function () use ($sabreNode) {
210
+		$propFind->handle(self::SHAREES_PROPERTYNAME, function() use ($sabreNode) {
211 211
 			$shares = $this->getShares($sabreNode);
212 212
 
213 213
 			return new ShareeList($shares);
Please login to merge, or discard this patch.
apps/dav/lib/Connector/Sabre/TagsPlugin.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -226,9 +226,9 @@  discard block
 block discarded – undo
226 226
 		)) {
227 227
 			// note: pre-fetching only supported for depth <= 1
228 228
 			$folderContent = $node->getChildren();
229
-			$fileIds[] = (int)$node->getId();
229
+			$fileIds[] = (int) $node->getId();
230 230
 			foreach ($folderContent as $info) {
231
-				$fileIds[] = (int)$info->getId();
231
+				$fileIds[] = (int) $info->getId();
232 232
 			}
233 233
 			$tags = $this->getTagger()->getTagsForObjects($fileIds);
234 234
 			if ($tags === false) {
@@ -246,12 +246,12 @@  discard block
 block discarded – undo
246 246
 
247 247
 		$isFav = null;
248 248
 
249
-		$propFind->handle(self::TAGS_PROPERTYNAME, function () use (&$isFav, $node) {
249
+		$propFind->handle(self::TAGS_PROPERTYNAME, function() use (&$isFav, $node) {
250 250
 			list($tags, $isFav) = $this->getTagsAndFav($node->getId());
251 251
 			return new TagList($tags);
252 252
 		});
253 253
 
254
-		$propFind->handle(self::FAVORITE_PROPERTYNAME, function () use ($isFav, $node) {
254
+		$propFind->handle(self::FAVORITE_PROPERTYNAME, function() use ($isFav, $node) {
255 255
 			if (is_null($isFav)) {
256 256
 				list(, $isFav) = $this->getTagsAndFav($node->getId());
257 257
 			}
@@ -277,13 +277,13 @@  discard block
 block discarded – undo
277 277
 			return;
278 278
 		}
279 279
 
280
-		$propPatch->handle(self::TAGS_PROPERTYNAME, function ($tagList) use ($node) {
280
+		$propPatch->handle(self::TAGS_PROPERTYNAME, function($tagList) use ($node) {
281 281
 			$this->updateTags($node->getId(), $tagList->getTags());
282 282
 			return true;
283 283
 		});
284 284
 
285
-		$propPatch->handle(self::FAVORITE_PROPERTYNAME, function ($favState) use ($node) {
286
-			if ((int)$favState === 1 || $favState === 'true') {
285
+		$propPatch->handle(self::FAVORITE_PROPERTYNAME, function($favState) use ($node) {
286
+			if ((int) $favState === 1 || $favState === 'true') {
287 287
 				$this->getTagger()->tagAs($node->getId(), self::TAG_FAVORITE);
288 288
 			} else {
289 289
 				$this->getTagger()->unTag($node->getId(), self::TAG_FAVORITE);
Please login to merge, or discard this patch.
apps/dav/lib/Command/SyncBirthdayCalendar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
 		$output->writeln("Start birthday calendar sync for all users ...");
97 97
 		$p = new ProgressBar($output);
98 98
 		$p->start();
99
-		$this->userManager->callForSeenUsers(function ($user) use ($p) {
99
+		$this->userManager->callForSeenUsers(function($user) use ($p) {
100 100
 			$p->advance();
101 101
 
102 102
 			$userId = $user->getUID();
Please login to merge, or discard this patch.
apps/dav/lib/Traits/PrincipalProxyTrait.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -91,11 +91,11 @@  discard block
 block discarded – undo
91 91
 		$proxies = $this->proxyMapper->getProxiesFor($principal);
92 92
 		foreach ($proxies as $proxy) {
93 93
 			if ($proxy->getPermissions() === ProxyMapper::PERMISSION_READ) {
94
-				$groups[] = $proxy->getOwnerId() . '/calendar-proxy-read';
94
+				$groups[] = $proxy->getOwnerId().'/calendar-proxy-read';
95 95
 			}
96 96
 
97 97
 			if ($proxy->getPermissions() === (ProxyMapper::PERMISSION_READ | ProxyMapper::PERMISSION_WRITE)) {
98
-				$groups[] = $proxy->getOwnerId() . '/calendar-proxy-write';
98
+				$groups[] = $proxy->getOwnerId().'/calendar-proxy-write';
99 99
 			}
100 100
 		}
101 101
 
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 			list($prefix, $name) = \Sabre\Uri\split($member);
136 136
 
137 137
 			if ($prefix !== $this->principalPrefix) {
138
-				throw new Exception('Invalid member group prefix: ' . $prefix);
138
+				throw new Exception('Invalid member group prefix: '.$prefix);
139 139
 			}
140 140
 
141 141
 			$principalArray = $this->getPrincipalByPath($member);
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 					$proxy->setPermissions($proxy->getPermissions() | $permission);
151 151
 					$this->proxyMapper->update($proxy);
152 152
 
153
-					$proxies = array_filter($proxies, function (Proxy $p) use ($proxy) {
153
+					$proxies = array_filter($proxies, function(Proxy $p) use ($proxy) {
154 154
 						return $p->getId() !== $proxy->getId();
155 155
 					});
156 156
 					break;
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
 	 * @return string
220 220
 	 */
221 221
 	private function getPrincipalUriFromProxyPrincipal(string $principalUri):string {
222
-		list($realPrincipalUri, ) = \Sabre\Uri\split($principalUri);
222
+		list($realPrincipalUri,) = \Sabre\Uri\split($principalUri);
223 223
 		return $realPrincipalUri;
224 224
 	}
225 225
 }
Please login to merge, or discard this patch.
apps/workflowengine/lib/Settings/ASettings.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -146,8 +146,8 @@  discard block
 block discarded – undo
146 146
 	}
147 147
 
148 148
 	private function entitiesToArray(array $entities) {
149
-		return array_map(function (IEntity $entity) {
150
-			$events = array_map(function (IEntityEvent $entityEvent) {
149
+		return array_map(function(IEntity $entity) {
150
+			$events = array_map(function(IEntityEvent $entityEvent) {
151 151
 				return [
152 152
 					'eventName' => $entityEvent->getEventName(),
153 153
 					'displayName' => $entityEvent->getDisplayName()
@@ -164,11 +164,11 @@  discard block
 block discarded – undo
164 164
 	}
165 165
 
166 166
 	private function operatorsToArray(array $operators) {
167
-		$operators = array_filter($operators, function (IOperation $operator) {
167
+		$operators = array_filter($operators, function(IOperation $operator) {
168 168
 			return $operator->isAvailableForScope($this->getScope());
169 169
 		});
170 170
 
171
-		return array_map(function (IOperation $operator) {
171
+		return array_map(function(IOperation $operator) {
172 172
 			return [
173 173
 				'id' => get_class($operator),
174 174
 				'icon' => $operator->getIcon(),
@@ -182,11 +182,11 @@  discard block
 block discarded – undo
182 182
 	}
183 183
 
184 184
 	private function checksToArray(array $checks) {
185
-		$checks = array_filter($checks, function (ICheck $check) {
185
+		$checks = array_filter($checks, function(ICheck $check) {
186 186
 			return $check->isAvailableForScope($this->getScope());
187 187
 		});
188 188
 
189
-		return array_map(function (ICheck $check) {
189
+		return array_map(function(ICheck $check) {
190 190
 			return [
191 191
 				'id' => get_class($check),
192 192
 				'supportedEntities' => $check->supportedEntities(),
Please login to merge, or discard this patch.
lib/private/Authentication/TwoFactorAuth/ProviderSet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 	 * @return IProvider[]
73 73
 	 */
74 74
 	public function getPrimaryProviders(): array {
75
-		return array_filter($this->providers, function (IProvider $provider) {
75
+		return array_filter($this->providers, function(IProvider $provider) {
76 76
 			return !($provider instanceof BackupCodesProvider);
77 77
 		});
78 78
 	}
Please login to merge, or discard this patch.