@@ -32,7 +32,6 @@ |
||
| 32 | 32 | |
| 33 | 33 | use OC\AppFramework\Http\Request; |
| 34 | 34 | use OCA\DAV\Files\IProvidesAdditionalHeaders; |
| 35 | -use OCA\DAV\Meta\MetaFile; |
|
| 36 | 35 | use OCP\Files\ForbiddenException; |
| 37 | 36 | use Sabre\DAV\Exception\Forbidden; |
| 38 | 37 | use Sabre\DAV\Exception\NotFound; |
@@ -310,6 +310,9 @@ |
||
| 310 | 310 | } |
| 311 | 311 | |
| 312 | 312 | |
| 313 | + /** |
|
| 314 | + * @param string $revision |
|
| 315 | + */ |
|
| 313 | 316 | public static function restoreVersion($uid, $filename, $fileToRestore, $revision) { |
| 314 | 317 | if(\OCP\Config::getSystemValue('files_versions', Storage::DEFAULTENABLED) !== true) { |
| 315 | 318 | return false; |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | |
| 93 | 93 | /** |
| 94 | 94 | * @param string $key |
| 95 | - * @param mixed $value |
|
| 95 | + * @param string|null $value |
|
| 96 | 96 | * @param int $ttl |
| 97 | 97 | * @return bool|mixed |
| 98 | 98 | * @throws \OC\ForbiddenException |