diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-06-15 23:21:56 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-06-21 16:53:20 +0200 |
commit | 71e41ffeeb4367f3253f16aba3bf21b80c09ca2b (patch) | |
tree | b8ecaada6f8e675b2670dcfe4389326dfa23568d /lib/private/Files/Node/Root.php | |
parent | f6ac874dbf7d4e5cb2255f25464df214bb956ffb (diff) | |
download | nextcloud-server-71e41ffeeb4367f3253f16aba3bf21b80c09ca2b.tar.gz nextcloud-server-71e41ffeeb4367f3253f16aba3bf21b80c09ca2b.zip |
refactor: declare getMount() and getMountsIn() at IRootFolder
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private/Files/Node/Root.php')
-rw-r--r-- | lib/private/Files/Node/Root.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/private/Files/Node/Root.php b/lib/private/Files/Node/Root.php index 0ed1bcab2ae..7bd88981ff2 100644 --- a/lib/private/Files/Node/Root.php +++ b/lib/private/Files/Node/Root.php @@ -154,11 +154,7 @@ class Root extends Folder implements IRootFolder { $this->mountManager->addMount($mount); } - /** - * @param string $mountPoint - * @return \OC\Files\Mount\MountPoint - */ - public function getMount($mountPoint) { + public function getMount(string $mountPoint): IMountPoint { return $this->mountManager->find($mountPoint); } @@ -166,7 +162,7 @@ class Root extends Folder implements IRootFolder { * @param string $mountPoint * @return \OC\Files\Mount\MountPoint[] */ - public function getMountsIn($mountPoint) { + public function getMountsIn(string $mountPoint): array { return $this->mountManager->findIn($mountPoint); } |