Passed
Push — master ( 3f0748...19712e )
by Roeland
36:01 queued 24:20
created
apps/files_sharing/lib/MountProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -81,14 +81,14 @@  discard block
 block discarded – undo
81 81
 		$shares = array_merge($shares, $this->shareManager->getSharedWith($user->getUID(), \OCP\Share::SHARE_TYPE_ROOM, null, -1));
82 82
 
83 83
 		// filter out excluded shares and group shares that includes self
84
-		$shares = array_filter($shares, function (\OCP\Share\IShare $share) use ($user) {
84
+		$shares = array_filter($shares, function(\OCP\Share\IShare $share) use ($user) {
85 85
 			return $share->getPermissions() > 0 && $share->getShareOwner() !== $user->getUID();
86 86
 		});
87 87
 
88 88
 		$superShares = $this->buildSuperShares($shares, $user);
89 89
 
90 90
 		$mounts = [];
91
-		$view = new View('/' . $user->getUID() . '/files');
91
+		$view = new View('/'.$user->getUID().'/files');
92 92
 		$ownerViews = [];
93 93
 		$sharingDisabledForUser = $this->shareManager->sharingDisabledForUser($user->getUID());
94 94
 		$foldersExistCache = new CappedMemoryCache();
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
 				$owner = $parentShare->getShareOwner();
108 108
 				if (!isset($ownerViews[$owner])) {
109
-					$ownerViews[$owner] = new View('/' . $parentShare->getShareOwner() . '/files');
109
+					$ownerViews[$owner] = new View('/'.$parentShare->getShareOwner().'/files');
110 110
 				}
111 111
 				$mount = new SharedMount(
112 112
 					'\OCA\Files_Sharing\SharedStorage',
@@ -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) {
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
 						// null groups which usually appear with group backend
223 223
 						// caching inconsistencies
224 224
 						$this->logger->debug(
225
-							'Could not adjust share target for share ' . $share->getId() . ' to make it consistent: ' . $e->getMessage(),
225
+							'Could not adjust share target for share '.$share->getId().' to make it consistent: '.$e->getMessage(),
226 226
 							['app' => 'files_sharing']
227 227
 						);
228 228
 					}
Please login to merge, or discard this patch.