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