From 70c37c2717883adbc08f04f68aaa7dad741ce1c1 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 17 Mar 2022 19:32:51 +0100 Subject: fmt Signed-off-by: Robin Appelman --- lib/private/Files/Node/LazyUserFolder.php | 5 +---- lib/private/Files/Node/Root.php | 1 - lib/private/Files/SetupManager.php | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/private/Files/Node/LazyUserFolder.php b/lib/private/Files/Node/LazyUserFolder.php index e4f45ad2962..4c9e89ce233 100644 --- a/lib/private/Files/Node/LazyUserFolder.php +++ b/lib/private/Files/Node/LazyUserFolder.php @@ -23,7 +23,6 @@ declare(strict_types=1); namespace OC\Files\Node; - use OCP\Constants; use OCP\Files\IRootFolder; use OCP\Files\NotFoundException; @@ -36,7 +35,7 @@ class LazyUserFolder extends LazyFolder { public function __construct(IRootFolder $rootFolder, IUser $user) { $this->rootFolder = $rootFolder; $this->user = $user; - parent::__construct(function() use ($user) { + parent::__construct(function () use ($user) { try { return $this->rootFolder->get('/' . $user->getUID() . '/files'); } catch (NotFoundException $e) { @@ -54,6 +53,4 @@ class LazyUserFolder extends LazyFolder { public function get($path) { return $this->rootFolder->get('/' . $this->user->getUID() . '/files/' . rtrim($path, '/')); } - - } diff --git a/lib/private/Files/Node/Root.php b/lib/private/Files/Node/Root.php index 6cb763e2bbf..349a83848a5 100644 --- a/lib/private/Files/Node/Root.php +++ b/lib/private/Files/Node/Root.php @@ -38,7 +38,6 @@ use OC\Files\Mount\MountPoint; use OC\Files\View; use OC\Hooks\PublicEmitter; use OC\User\NoUserException; -use OCP\Constants; use OCP\EventDispatcher\IEventDispatcher; use OCP\Files\Config\IUserMountCache; use OCP\Files\Events\Node\FilesystemTornDownEvent; diff --git a/lib/private/Files/SetupManager.php b/lib/private/Files/SetupManager.php index 6746af1068e..4ef2506cf7b 100644 --- a/lib/private/Files/SetupManager.php +++ b/lib/private/Files/SetupManager.php @@ -464,7 +464,7 @@ class SetupManager { ]; foreach ($genericEvents as $genericEvent) { - $this->eventDispatcher->addListener($genericEvent, function($event) { + $this->eventDispatcher->addListener($genericEvent, function ($event) { $this->cache->clear(); }); } -- cgit v1.2.3