diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-04-25 20:24:23 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-04-25 20:25:10 +0200 |
commit | c625fc5931c904e5d6bafe855429eebeae23467f (patch) | |
tree | 947d13b4afaf7254fcc0e842aa208324bea2f934 /apps/files_trashbin/lib/Sabre/RootCollection.php | |
parent | dadc740db5eb7a5641be842e10c283490fbf4c4d (diff) | |
download | nextcloud-server-c625fc5931c904e5d6bafe855429eebeae23467f.tar.gz nextcloud-server-c625fc5931c904e5d6bafe855429eebeae23467f.zip |
Add folder for trashbin
The trashbin home now contains 2 entries restore and trash.
Made all files strict. Added more types.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_trashbin/lib/Sabre/RootCollection.php')
-rw-r--r-- | apps/files_trashbin/lib/Sabre/RootCollection.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_trashbin/lib/Sabre/RootCollection.php b/apps/files_trashbin/lib/Sabre/RootCollection.php index 226fc33e58e..e425fb448e2 100644 --- a/apps/files_trashbin/lib/Sabre/RootCollection.php +++ b/apps/files_trashbin/lib/Sabre/RootCollection.php @@ -1,4 +1,5 @@ <?php +declare(strict_types=1); /** * @copyright 2018, Roeland Jago Douma <roeland@famdouma.nl> * @@ -42,7 +43,7 @@ class RootCollection extends AbstractPrincipalCollection { * @param array $principalInfo * @return INode */ - public function getChildForPrincipal(array $principalInfo) { + public function getChildForPrincipal(array $principalInfo): TrashHome { list(,$name) = \Sabre\Uri\split($principalInfo['uri']); $user = \OC::$server->getUserSession()->getUser(); if (is_null($user) || $name !== $user->getUID()) { @@ -51,7 +52,7 @@ class RootCollection extends AbstractPrincipalCollection { return new TrashHome($principalInfo); } - public function getName() { + public function getName(): string { return 'trashbin'; } |