@@ -643,7 +643,7 @@ discard block |
||
643 | 643 | * Set the flag to true, so that the file would be |
644 | 644 | * in the decrypted state. |
645 | 645 | * |
646 | - * @param $isDisabled bool |
|
646 | + * @param boolean $isDisabled bool |
|
647 | 647 | */ |
648 | 648 | public static function setDisableWriteEncryption($isDisabled) { |
649 | 649 | self::$disableWriteEncryption = $isDisabled; |
@@ -672,7 +672,7 @@ discard block |
||
672 | 672 | /** |
673 | 673 | * Update the encrypted cache version in the database |
674 | 674 | * |
675 | - * @param Storage $sourceStorage |
|
675 | + * @param Storage\IStorage $sourceStorage |
|
676 | 676 | * @param string $sourceInternalPath |
677 | 677 | * @param string $targetInternalPath |
678 | 678 | * @param bool $isRename |
@@ -717,7 +717,7 @@ discard block |
||
717 | 717 | /** |
718 | 718 | * copy file between two storages |
719 | 719 | * |
720 | - * @param Storage $sourceStorage |
|
720 | + * @param Storage\IStorage $sourceStorage |
|
721 | 721 | * @param string $sourceInternalPath |
722 | 722 | * @param string $targetInternalPath |
723 | 723 | * @param bool $preserveMtime |
@@ -901,7 +901,7 @@ discard block |
||
901 | 901 | /** |
902 | 902 | * return header size of given file |
903 | 903 | * |
904 | - * @param string|resource $path |
|
904 | + * @param string $path |
|
905 | 905 | * @return int |
906 | 906 | */ |
907 | 907 | protected function getHeaderSize($path) { |
@@ -952,7 +952,7 @@ discard block |
||
952 | 952 | /** |
953 | 953 | * read header from file |
954 | 954 | * |
955 | - * @param string|resource $path |
|
955 | + * @param string $path |
|
956 | 956 | * @return array |
957 | 957 | */ |
958 | 958 | protected function getHeader($path) { |
@@ -1048,7 +1048,7 @@ discard block |
||
1048 | 1048 | /** |
1049 | 1049 | * check if path points to a files version |
1050 | 1050 | * |
1051 | - * @param $path |
|
1051 | + * @param string $path |
|
1052 | 1052 | * @return bool |
1053 | 1053 | */ |
1054 | 1054 | protected function isVersion($path) { |
@@ -315,6 +315,9 @@ |
||
315 | 315 | } |
316 | 316 | } |
317 | 317 | |
318 | + /** |
|
319 | + * @param string $revision |
|
320 | + */ |
|
318 | 321 | public static function restoreVersion($uid, $filename, $fileToRestore, $revision) { |
319 | 322 | if (\OC::$server->getConfig()->getSystemValue('files_versions', Storage::DEFAULTENABLED) !== true) { |
320 | 323 | return false; |
@@ -20,7 +20,6 @@ |
||
20 | 20 | */ |
21 | 21 | namespace OCA\Files_Sharing\Service; |
22 | 22 | |
23 | -use OCP\BackgroundJob\IJobList; |
|
24 | 23 | use OCP\IURLGenerator; |
25 | 24 | use OCP\IUserManager; |
26 | 25 | use OCP\IGroupManager; |