]> source.dussan.org Git - nextcloud-server.git/commitdiff
fmt
authorRobin Appelman <robin@icewind.nl>
Thu, 17 Mar 2022 18:32:51 +0000 (19:32 +0100)
committerRobin Appelman <robin@icewind.nl>
Thu, 24 Mar 2022 16:03:55 +0000 (17:03 +0100)
Signed-off-by: Robin Appelman <robin@icewind.nl>
lib/private/Files/Node/LazyUserFolder.php
lib/private/Files/Node/Root.php
lib/private/Files/SetupManager.php

index e4f45ad2962ce5c42eb77f8b2955c02032aa17bc..4c9e89ce23341752ca8d48c85919a3a824cf5dc0 100644 (file)
@@ -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, '/'));
        }
-
-
 }
index 6cb763e2bbf32aae2ee084c5da0a03e6037d8e1e..349a83848a5f0a8332f10a216c9c8d68a875e1f0 100644 (file)
@@ -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;
index 6746af1068e70014eea43199483851313987ce92..4ef2506cf7be96f885c885472d55a913f6291b5c 100644 (file)
@@ -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();
                        });
                }