diff options
author | Robin Appelman <robin@icewind.nl> | 2022-03-17 21:32:51 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-03-24 19:03:55 +0300 |
commit | 70c37c2717883adbc08f04f68aaa7dad741ce1c1 (patch) | |
tree | c1d32b9d464a6481863ec370d7c1fede171bcf4d /lib | |
parent | 89919b0e24563a0468e72395963e236fcedc0df6 (diff) |
fmt
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Node/LazyUserFolder.php | 5 | ||||
-rw-r--r-- | lib/private/Files/Node/Root.php | 1 | ||||
-rw-r--r-- | lib/private/Files/SetupManager.php | 2 |
3 files changed, 2 insertions, 6 deletions
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(); }); } |