@@ -218,6 +218,9 @@ discard block |
||
| 218 | 218 | |
| 219 | 219 | /** |
| 220 | 220 | * |
| 221 | + * @param string $targetFilename |
|
| 222 | + * @param string $targetLocation |
|
| 223 | + * @param integer $timestamp |
|
| 221 | 224 | */ |
| 222 | 225 | public static function insertTrashEntry($user, $targetFilename, $targetLocation, $timestamp) { |
| 223 | 226 | $query = \OC_DB::prepare("INSERT INTO `*PREFIX*files_trash` (`id`,`timestamp`,`location`,`user`) VALUES (?,?,?,?)"); |
@@ -330,6 +333,7 @@ discard block |
||
| 330 | 333 | * @param string $ownerPath path relative to the owner's home storage |
| 331 | 334 | * @param integer $timestamp when the file was deleted |
| 332 | 335 | * @param bool $forceCopy true to only make a copy of the versions into the trashbin |
| 336 | + * @param \OC\Files\Storage\Storage $sourceStorage |
|
| 333 | 337 | */ |
| 334 | 338 | private static function retainVersions($filename, $owner, $ownerPath, $timestamp, $sourceStorage = null, $forceCopy = false) { |
| 335 | 339 | if (\OCP\App::isEnabled('files_versions') && !empty($ownerPath)) { |
@@ -780,7 +784,7 @@ discard block |
||
| 780 | 784 | * if the size limit for the trash bin is reached, we delete the oldest |
| 781 | 785 | * files in the trash bin until we meet the limit again |
| 782 | 786 | * |
| 783 | - * @param array $files |
|
| 787 | + * @param \OCP\Files\FileInfo[] $files |
|
| 784 | 788 | * @param string $user |
| 785 | 789 | * @param int $availableSpace available disc space |
| 786 | 790 | * @return int size of deleted files |
@@ -808,7 +812,7 @@ discard block |
||
| 808 | 812 | /** |
| 809 | 813 | * delete files older then max storage time |
| 810 | 814 | * |
| 811 | - * @param array $files list of files sorted by mtime |
|
| 815 | + * @param \OCP\Files\FileInfo[] $files list of files sorted by mtime |
|
| 812 | 816 | * @param string $user |
| 813 | 817 | * @return integer[] size of deleted files and number of deleted files |
| 814 | 818 | */ |