Passed
Push — master ( 13c7a9...8fcc0e )
by Christoph
15:42 queued 11s
created
apps/dav/lib/BackgroundJob/RegisterRegenerateBirthdayCalendars.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 	 * @inheritDoc
58 58
 	 */
59 59
 	public function run($argument) {
60
-		$this->userManager->callForSeenUsers(function (IUser $user) {
60
+		$this->userManager->callForSeenUsers(function(IUser $user) {
61 61
 			$this->jobList->add(GenerateBirthdayCalendarBackgroundJob::class, [
62 62
 				'userId' => $user->getUID(),
63 63
 				'purgeBeforeGenerating' => true
Please login to merge, or discard this patch.
apps/dav/lib/CardDAV/UserAddressBooks.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
 		$addressBooks = $this->carddavBackend->getAddressBooksForUser($this->principalUri);
74 74
 		/** @var IAddressBook[] $objects */
75
-		$objects = array_map(function (array $addressBook) {
75
+		$objects = array_map(function(array $addressBook) {
76 76
 			if ($addressBook['principaluri'] === 'principals/system/system') {
77 77
 				return new SystemAddressbook($this->carddavBackend, $addressBook, $this->l10n, $this->config);
78 78
 			}
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 			return new AddressBook($this->carddavBackend, $addressBook, $this->l10n);
81 81
 		}, $addressBooks);
82 82
 		/** @var IAddressBook[][] $objectsFromPlugins */
83
-		$objectsFromPlugins = array_map(function (IAddressBookProvider $plugin): array {
83
+		$objectsFromPlugins = array_map(function(IAddressBookProvider $plugin): array {
84 84
 			return $plugin->fetchAllForAddressBookHome($this->principalUri);
85 85
 		}, $this->pluginManager->getAddressBookPlugins());
86 86
 
Please login to merge, or discard this patch.
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/CalDAV/Publishing/PublishPlugin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -113,12 +113,12 @@  discard block
 block discarded – undo
113 113
 		$this->server = $server;
114 114
 
115 115
 		$this->server->on('method:POST', [$this, 'httpPost']);
116
-		$this->server->on('propFind',    [$this, 'propFind']);
116
+		$this->server->on('propFind', [$this, 'propFind']);
117 117
 	}
118 118
 
119 119
 	public function propFind(PropFind $propFind, INode $node) {
120 120
 		if ($node instanceof Calendar) {
121
-			$propFind->handle('{'.self::NS_CALENDARSERVER.'}publish-url', function () use ($node) {
121
+			$propFind->handle('{'.self::NS_CALENDARSERVER.'}publish-url', function() use ($node) {
122 122
 				if ($node->getPublishStatus()) {
123 123
 					// We return the publish-url only if the calendar is published.
124 124
 					$token = $node->getPublishStatus();
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 				}
129 129
 			});
130 130
 
131
-			$propFind->handle('{'.self::NS_CALENDARSERVER.'}allowed-sharing-modes', function () use ($node) {
131
+			$propFind->handle('{'.self::NS_CALENDARSERVER.'}allowed-sharing-modes', function() use ($node) {
132 132
 				$canShare = (!$node->isSubscription() && $node->canWrite());
133 133
 				$canPublish = (!$node->isSubscription() && $node->canWrite());
134 134
 
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.