Passed
Push — master ( 2a75c3...eff0fa )
by Robin
14:34 queued 12s
created
lib/private/Files/SetupManager.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -86,14 +86,14 @@  discard block
 block discarded – undo
86 86
 	}
87 87
 
88 88
 	private function setupBuiltinWrappers() {
89
-		Filesystem::addStorageWrapper('mount_options', function ($mountPoint, IStorage $storage, IMountPoint $mount) {
89
+		Filesystem::addStorageWrapper('mount_options', function($mountPoint, IStorage $storage, IMountPoint $mount) {
90 90
 			if ($storage->instanceOfStorage(Common::class)) {
91 91
 				$storage->setMountOptions($mount->getOptions());
92 92
 			}
93 93
 			return $storage;
94 94
 		});
95 95
 
96
-		Filesystem::addStorageWrapper('enable_sharing', function ($mountPoint, IStorage $storage, IMountPoint $mount) {
96
+		Filesystem::addStorageWrapper('enable_sharing', function($mountPoint, IStorage $storage, IMountPoint $mount) {
97 97
 			if (!$mount->getOption('enable_sharing', true)) {
98 98
 				return new PermissionsMask([
99 99
 					'storage' => $storage,
@@ -104,21 +104,21 @@  discard block
 block discarded – undo
104 104
 		});
105 105
 
106 106
 		// install storage availability wrapper, before most other wrappers
107
-		Filesystem::addStorageWrapper('oc_availability', function ($mountPoint, IStorage $storage) {
107
+		Filesystem::addStorageWrapper('oc_availability', function($mountPoint, IStorage $storage) {
108 108
 			if (!$storage->instanceOfStorage('\OCA\Files_Sharing\SharedStorage') && !$storage->isLocal()) {
109 109
 				return new Availability(['storage' => $storage]);
110 110
 			}
111 111
 			return $storage;
112 112
 		});
113 113
 
114
-		Filesystem::addStorageWrapper('oc_encoding', function ($mountPoint, IStorage $storage, IMountPoint $mount) {
114
+		Filesystem::addStorageWrapper('oc_encoding', function($mountPoint, IStorage $storage, IMountPoint $mount) {
115 115
 			if ($mount->getOption('encoding_compatibility', false) && !$storage->instanceOfStorage('\OCA\Files_Sharing\SharedStorage') && !$storage->isLocal()) {
116 116
 				return new Encoding(['storage' => $storage]);
117 117
 			}
118 118
 			return $storage;
119 119
 		});
120 120
 
121
-		Filesystem::addStorageWrapper('oc_quota', function ($mountPoint, $storage) {
121
+		Filesystem::addStorageWrapper('oc_quota', function($mountPoint, $storage) {
122 122
 			// set up quota for home storages, even for other users
123 123
 			// which can happen when using sharing
124 124
 
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 			return $storage;
138 138
 		});
139 139
 
140
-		Filesystem::addStorageWrapper('readonly', function ($mountPoint, IStorage $storage, IMountPoint $mount) {
140
+		Filesystem::addStorageWrapper('readonly', function($mountPoint, IStorage $storage, IMountPoint $mount) {
141 141
 			/*
142 142
 			 * Do not allow any operations that modify the storage
143 143
 			 */
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 
175 175
 		Filesystem::logWarningWhenAddingStorageWrapper($prevLogging);
176 176
 
177
-		$userDir = '/' . $user->getUID() . '/files';
177
+		$userDir = '/'.$user->getUID().'/files';
178 178
 
179 179
 		Filesystem::init($user, $userDir);
180 180
 
@@ -197,11 +197,11 @@  discard block
 block discarded – undo
197 197
 		} else {
198 198
 			$this->mountManager->addMount(new MountPoint(
199 199
 				new NullStorage([]),
200
-				'/' . $user->getUID()
200
+				'/'.$user->getUID()
201 201
 			));
202 202
 			$this->mountManager->addMount(new MountPoint(
203 203
 				new NullStorage([]),
204
-				'/' . $user->getUID() . '/files'
204
+				'/'.$user->getUID().'/files'
205 205
 			));
206 206
 		}
207 207
 		\OC_Hook::emit('OC_Filesystem', 'post_initMountPoints', ['user' => $user->getUID()]);
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
 				$this->setupRoot();
251 251
 			}
252 252
 			return;
253
-		} elseif (strpos($path, '/appdata_' . \OC_Util::getInstanceId()) === 0 || strpos($path, '/files_external/') === 0) {
253
+		} elseif (strpos($path, '/appdata_'.\OC_Util::getInstanceId()) === 0 || strpos($path, '/files_external/') === 0) {
254 254
 			$this->setupRoot();
255 255
 			return;
256 256
 		} else {
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
 	private function listenForNewMountProviders() {
281 281
 		if (!$this->listeningForProviders) {
282 282
 			$this->listeningForProviders = true;
283
-			$this->mountProviderCollection->listen('\OC\Files\Config', 'registerMountProvider', function (IMountProvider $provider) {
283
+			$this->mountProviderCollection->listen('\OC\Files\Config', 'registerMountProvider', function(IMountProvider $provider) {
284 284
 				foreach ($this->setupUsers as $userId) {
285 285
 					$user = $this->userManager->get($userId);
286 286
 					if ($user) {
Please login to merge, or discard this patch.