Completed
Push — master ( 80b21c...5129a7 )
by Joas
29:44 queued 15s
created
apps/files_sharing/lib/MountProvider.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
 
56 56
 		// filter out excluded shares and group shares that includes self
57
-		$shares = array_filter($shares, function (IShare $share) use ($user) {
57
+		$shares = array_filter($shares, function(IShare $share) use ($user) {
58 58
 			return $share->getPermissions() > 0 && $share->getShareOwner() !== $user->getUID();
59 59
 		});
60 60
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
 		$otherMounts = $this->mountManager->getAll();
64 64
 		$mounts = [];
65
-		$view = new View('/' . $user->getUID() . '/files');
65
+		$view = new View('/'.$user->getUID().'/files');
66 66
 		$ownerViews = [];
67 67
 		$sharingDisabledForUser = $this->shareManager->sharingDisabledForUser($user->getUID());
68 68
 		/** @var CappedMemoryCache<bool> $folderExistCache */
@@ -86,9 +86,9 @@  discard block
 block discarded – undo
86 86
 
87 87
 				$owner = $parentShare->getShareOwner();
88 88
 				if (!isset($ownerViews[$owner])) {
89
-					$ownerViews[$owner] = new View('/' . $parentShare->getShareOwner() . '/files');
89
+					$ownerViews[$owner] = new View('/'.$parentShare->getShareOwner().'/files');
90 90
 				}
91
-				$shareId = (int)$parentShare->getId();
91
+				$shareId = (int) $parentShare->getId();
92 92
 				$mount = new SharedMount(
93 93
 					'\OCA\Files_Sharing\SharedStorage',
94 94
 					array_merge($mounts, $otherMounts),
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 		$result = [];
156 156
 		// sort by stime, the super share will be based on the least recent share
157 157
 		foreach ($tmp as &$tmp2) {
158
-			@usort($tmp2, function ($a, $b) {
158
+			@usort($tmp2, function($a, $b) {
159 159
 				$aTime = $a->getShareTime()->getTimestamp();
160 160
 				$bTime = $b->getShareTime()->getTimestamp();
161 161
 				if ($aTime === $bTime) {
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 			// Since these are readly available here, storing them
204 204
 			// enables the DAV FilesPlugin to avoid executing many
205 205
 			// DB queries to retrieve the same information.
206
-			$allNotes = implode("\n", array_map(function ($sh) {
206
+			$allNotes = implode("\n", array_map(function($sh) {
207 207
 				return $sh->getNote();
208 208
 			}, $shares));
209 209
 			$superShare->setNote($allNotes);
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
 						// null groups which usually appear with group backend
250 250
 						// caching inconsistencies
251 251
 						$this->logger->debug(
252
-							'Could not adjust share target for share ' . $share->getId() . ' to make it consistent: ' . $e->getMessage(),
252
+							'Could not adjust share target for share '.$share->getId().' to make it consistent: '.$e->getMessage(),
253 253
 							['app' => 'files_sharing']
254 254
 						);
255 255
 					}
Please login to merge, or discard this patch.