aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-09-16 20:29:48 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-09-16 20:29:48 +0200
commit03b969fb9597ae86564ad5f8a83d6fd64bd1d65a (patch)
treed27040197d5bcd91c29e8c3dda779d2ba254013a /apps/files_trashbin/lib
parente7ac9bb2d8a14ccbf3305de4af851ed1476b205e (diff)
downloadnextcloud-server-03b969fb9597ae86564ad5f8a83d6fd64bd1d65a.tar.gz
nextcloud-server-03b969fb9597ae86564ad5f8a83d6fd64bd1d65a.zip
chore: Improve typing and phpdoc comments
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/files_trashbin/lib')
-rw-r--r--apps/files_trashbin/lib/Trashbin.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_trashbin/lib/Trashbin.php b/apps/files_trashbin/lib/Trashbin.php
index b83a81972e1..544bc877d70 100644
--- a/apps/files_trashbin/lib/Trashbin.php
+++ b/apps/files_trashbin/lib/Trashbin.php
@@ -140,6 +140,7 @@ class Trashbin {
}
}
+ /** @param string $user */
private static function setUpTrash($user): void {
$view = new View('/' . $user);
if (!$view->is_dir('files_trashbin')) {
@@ -163,10 +164,10 @@ class Trashbin {
* @param string $sourcePath
* @param string $owner
* @param string $targetPath
- * @param $user
+ * @param string $user
* @param int $timestamp
*/
- private static function copyFilesToUser($sourcePath, $owner, $targetPath, $user, $timestamp) {
+ private static function copyFilesToUser($sourcePath, $owner, $targetPath, $user, $timestamp): void {
self::setUpTrash($owner);
$targetFilename = basename($targetPath);