aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib/Sabre/RestoreFolder.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-04-25 20:24:23 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-04-25 20:25:10 +0200
commitc625fc5931c904e5d6bafe855429eebeae23467f (patch)
tree947d13b4afaf7254fcc0e842aa208324bea2f934 /apps/files_trashbin/lib/Sabre/RestoreFolder.php
parentdadc740db5eb7a5641be842e10c283490fbf4c4d (diff)
downloadnextcloud-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/RestoreFolder.php')
-rw-r--r--apps/files_trashbin/lib/Sabre/RestoreFolder.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_trashbin/lib/Sabre/RestoreFolder.php b/apps/files_trashbin/lib/Sabre/RestoreFolder.php
index b2416b1aeb0..04f23db0ed4 100644
--- a/apps/files_trashbin/lib/Sabre/RestoreFolder.php
+++ b/apps/files_trashbin/lib/Sabre/RestoreFolder.php
@@ -63,19 +63,19 @@ class RestoreFolder implements ICollection, IMoveTarget {
throw new Forbidden();
}
- public function getLastModified() {
+ public function getLastModified(): int {
return 0;
}
- public function getChildren() {
+ public function getChildren(): array {
return [];
}
- public function childExists($name) {
+ public function childExists($name): bool {
return false;
}
- function moveInto($targetName, $sourcePath, INode $sourceNode) {
+ public function moveInto($targetName, $sourcePath, INode $sourceNode): bool {
if (!($sourceNode instanceof ITrash)) {
return false;
}