Completed
Pull Request — master (#9895)
by Björn
168:09 queued 150:46
created
apps/files_sharing/lib/Hooks.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -32,35 +32,35 @@
 block discarded – undo
32 32
 
33 33
 class Hooks {
34 34
 
35
-	public static function deleteUser($params) {
36
-		$manager = new External\Manager(
37
-			\OC::$server->getDatabaseConnection(),
38
-			\OC\Files\Filesystem::getMountManager(),
39
-			\OC\Files\Filesystem::getLoader(),
40
-			\OC::$server->getHTTPClientService(),
41
-			\OC::$server->getNotificationManager(),
42
-			\OC::$server->query(\OCP\OCS\IDiscoveryService::class),
43
-			\OC::$server->getCloudFederationProviderManager(),
44
-			\OC::$server->getCloudFederationFactory(),
45
-			\OC::$server->getGroupManager(),
46
-			\OC::$server->getUserManager(),
47
-			$params['uid']);
35
+    public static function deleteUser($params) {
36
+        $manager = new External\Manager(
37
+            \OC::$server->getDatabaseConnection(),
38
+            \OC\Files\Filesystem::getMountManager(),
39
+            \OC\Files\Filesystem::getLoader(),
40
+            \OC::$server->getHTTPClientService(),
41
+            \OC::$server->getNotificationManager(),
42
+            \OC::$server->query(\OCP\OCS\IDiscoveryService::class),
43
+            \OC::$server->getCloudFederationProviderManager(),
44
+            \OC::$server->getCloudFederationFactory(),
45
+            \OC::$server->getGroupManager(),
46
+            \OC::$server->getUserManager(),
47
+            $params['uid']);
48 48
 
49
-		$manager->removeUserShares($params['uid']);
50
-	}
49
+        $manager->removeUserShares($params['uid']);
50
+    }
51 51
 
52
-	public static function unshareChildren($params) {
53
-		$path = Filesystem::getView()->getAbsolutePath($params['path']);
54
-		$view = new \OC\Files\View('/');
52
+    public static function unshareChildren($params) {
53
+        $path = Filesystem::getView()->getAbsolutePath($params['path']);
54
+        $view = new \OC\Files\View('/');
55 55
 
56
-		// find share mount points within $path and unmount them
57
-		$mountManager = \OC\Files\Filesystem::getMountManager();
58
-		$mountedShares = $mountManager->findIn($path);
59
-		foreach ($mountedShares as $mount) {
60
-			if ($mount->getStorage()->instanceOfStorage(ISharedStorage::class)) {
61
-				$mountPoint = $mount->getMountPoint();
62
-				$view->unlink($mountPoint);
63
-			}
64
-		}
65
-	}
56
+        // find share mount points within $path and unmount them
57
+        $mountManager = \OC\Files\Filesystem::getMountManager();
58
+        $mountedShares = $mountManager->findIn($path);
59
+        foreach ($mountedShares as $mount) {
60
+            if ($mount->getStorage()->instanceOfStorage(ISharedStorage::class)) {
61
+                $mountPoint = $mount->getMountPoint();
62
+                $view->unlink($mountPoint);
63
+            }
64
+        }
65
+    }
66 66
 }
Please login to merge, or discard this patch.