Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Files trashbin app: Add parameter type to the methods according to th…
…e psalm analysis

Signed-off-by: Danial Rahimi <[email protected]>
  • Loading branch information
danialRahimy committed Aug 16, 2023
commit 8bd6a2fb6643b3694e5e1e475a66fd6f6438d4de
8 changes: 6 additions & 2 deletions apps/files_trashbin/lib/Trashbin.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ public static function getLocation($user, $filename, $timestamp): bool|string {
}
}

/**
* @param string $user
* @throws \Exception
*/
private static function setUpTrash($user): void {
$view = new View('/' . $user);
if (!$view->is_dir('files_trashbin')) {
Expand All @@ -201,7 +205,7 @@ private static function setUpTrash($user): void {
* @param string $sourcePath
* @param string $owner
* @param string $targetPath
* @param $user
* @param string $user
* @param int $timestamp
* @throws Exception
* @throws CopyRecursiveException
Expand Down Expand Up @@ -1228,7 +1232,7 @@ public static function isEmpty($user): bool {
}

/**
* @param $path
* @param string $path
* @return string
*/
public static function preview_icon($path): string {
Expand Down