@@ -259,6 +259,9 @@ discard block |
||
259 | 259 | |
260 | 260 | /** |
261 | 261 | * |
262 | + * @param string $targetFilename |
|
263 | + * @param string $targetLocation |
|
264 | + * @param integer $timestamp |
|
262 | 265 | */ |
263 | 266 | public static function insertTrashEntry($user, $targetFilename, $targetLocation, $timestamp) { |
264 | 267 | $query = \OC_DB::prepare("INSERT INTO `*PREFIX*files_trash` (`id`,`timestamp`,`location`,`user`) VALUES (?,?,?,?)"); |
@@ -784,7 +787,7 @@ discard block |
||
784 | 787 | * if the size limit for the trash bin is reached, we delete the oldest |
785 | 788 | * files in the trash bin until we meet the limit again |
786 | 789 | * |
787 | - * @param array $files |
|
790 | + * @param \OCP\Files\FileInfo[] $files |
|
788 | 791 | * @param string $user |
789 | 792 | * @param int $availableSpace available disc space |
790 | 793 | * @return int size of deleted files |
@@ -818,7 +821,7 @@ discard block |
||
818 | 821 | /** |
819 | 822 | * delete files older then max storage time |
820 | 823 | * |
821 | - * @param array $files list of files sorted by mtime |
|
824 | + * @param \OCP\Files\FileInfo[] $files list of files sorted by mtime |
|
822 | 825 | * @param string $user |
823 | 826 | * @return integer[] size of deleted files and number of deleted files |
824 | 827 | */ |
@@ -888,6 +891,7 @@ discard block |
||
888 | 891 | * |
889 | 892 | * @param string $filename name of the file which should be restored |
890 | 893 | * @param int $timestamp timestamp when the file was deleted |
894 | + * @param string|boolean $user |
|
891 | 895 | * @return array |
892 | 896 | */ |
893 | 897 | private static function getVersionsFromTrash($filename, $timestamp, $user) { |
@@ -704,7 +704,7 @@ |
||
704 | 704 | } |
705 | 705 | |
706 | 706 | /** |
707 | - * @param $internalPath |
|
707 | + * @param string $internalPath |
|
708 | 708 | * @return array |
709 | 709 | */ |
710 | 710 | protected function convertInternalPathToGlobalPath($internalPath) { |
@@ -255,7 +255,7 @@ |
||
255 | 255 | } |
256 | 256 | |
257 | 257 | /** |
258 | - * @param $user |
|
258 | + * @param \OCP\IUser|null $user |
|
259 | 259 | * @throws ServiceUnavailable |
260 | 260 | */ |
261 | 261 | private function checkAccountModule($user) { |