Passed
Push — master ( db0268...2d41f0 )
by Blizzz
16:12 queued 15s
created
apps/dav/lib/SystemTag/SystemTagPlugin.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 			if ($node instanceof SystemTagsObjectMappingCollection) {
146 146
 				// also add to collection
147 147
 				$node->createFile($tag->getId());
148
-				$url = $request->getBaseUrl() . 'systemtags/';
148
+				$url = $request->getBaseUrl().'systemtags/';
149 149
 			} else {
150 150
 				$url = $request->getUrl();
151 151
 			}
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 				$url .= '/';
155 155
 			}
156 156
 
157
-			$response->setHeader('Content-Location', $url . $tag->getId());
157
+			$response->setHeader('Content-Location', $url.$tag->getId());
158 158
 
159 159
 			// created
160 160
 			$response->setStatus(201);
@@ -189,11 +189,11 @@  discard block
 block discarded – undo
189 189
 		$userAssignable = true;
190 190
 
191 191
 		if (isset($data['userVisible'])) {
192
-			$userVisible = (bool)$data['userVisible'];
192
+			$userVisible = (bool) $data['userVisible'];
193 193
 		}
194 194
 
195 195
 		if (isset($data['userAssignable'])) {
196
-			$userAssignable = (bool)$data['userAssignable'];
196
+			$userAssignable = (bool) $data['userAssignable'];
197 197
 		}
198 198
 
199 199
 		$groups = [];
@@ -243,29 +243,29 @@  discard block
 block discarded – undo
243 243
 			return;
244 244
 		}
245 245
 
246
-		$propFind->handle(self::ID_PROPERTYNAME, function () use ($node) {
246
+		$propFind->handle(self::ID_PROPERTYNAME, function() use ($node) {
247 247
 			return $node->getSystemTag()->getId();
248 248
 		});
249 249
 
250
-		$propFind->handle(self::DISPLAYNAME_PROPERTYNAME, function () use ($node) {
250
+		$propFind->handle(self::DISPLAYNAME_PROPERTYNAME, function() use ($node) {
251 251
 			return $node->getSystemTag()->getName();
252 252
 		});
253 253
 
254
-		$propFind->handle(self::USERVISIBLE_PROPERTYNAME, function () use ($node) {
254
+		$propFind->handle(self::USERVISIBLE_PROPERTYNAME, function() use ($node) {
255 255
 			return $node->getSystemTag()->isUserVisible() ? 'true' : 'false';
256 256
 		});
257 257
 
258
-		$propFind->handle(self::USERASSIGNABLE_PROPERTYNAME, function () use ($node) {
258
+		$propFind->handle(self::USERASSIGNABLE_PROPERTYNAME, function() use ($node) {
259 259
 			// this is the tag's inherent property "is user assignable"
260 260
 			return $node->getSystemTag()->isUserAssignable() ? 'true' : 'false';
261 261
 		});
262 262
 
263
-		$propFind->handle(self::CANASSIGN_PROPERTYNAME, function () use ($node) {
263
+		$propFind->handle(self::CANASSIGN_PROPERTYNAME, function() use ($node) {
264 264
 			// this is the effective permission for the current user
265 265
 			return $this->tagManager->canUserAssignTag($node->getSystemTag(), $this->userSession->getUser()) ? 'true' : 'false';
266 266
 		});
267 267
 
268
-		$propFind->handle(self::GROUPS_PROPERTYNAME, function () use ($node) {
268
+		$propFind->handle(self::GROUPS_PROPERTYNAME, function() use ($node) {
269 269
 			if (!$this->groupManager->isAdmin($this->userSession->getUser()->getUID())) {
270 270
 				// property only available for admins
271 271
 				throw new Forbidden();
@@ -302,14 +302,14 @@  discard block
 block discarded – undo
302 302
 			}
303 303
 		}
304 304
 
305
-		$propFind->handle(self::SYSTEM_TAGS_PROPERTYNAME, function () use ($node) {
305
+		$propFind->handle(self::SYSTEM_TAGS_PROPERTYNAME, function() use ($node) {
306 306
 			$user = $this->userSession->getUser();
307 307
 			if ($user === null) {
308 308
 				return;
309 309
 			}
310 310
 
311 311
 			$tags = $this->getTagsForFile($node->getId(), $user);
312
-			usort($tags, function (ISystemTag $tagA, ISystemTag $tagB): int {
312
+			usort($tags, function(ISystemTag $tagA, ISystemTag $tagB): int {
313 313
 				return Util::naturalSortCompare($tagA->getName(), $tagB->getName());
314 314
 			});
315 315
 			return new SystemTagList($tags, $this->tagManager, $user);
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
 			self::USERVISIBLE_PROPERTYNAME,
375 375
 			self::USERASSIGNABLE_PROPERTYNAME,
376 376
 			self::GROUPS_PROPERTYNAME,
377
-		], function ($props) use ($node) {
377
+		], function($props) use ($node) {
378 378
 			$tag = $node->getSystemTag();
379 379
 			$name = $tag->getName();
380 380
 			$userVisible = $tag->isUserVisible();
Please login to merge, or discard this patch.