@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | * @param string $path |
| 175 | 175 | * @throws \OCP\Files\NotFoundException |
| 176 | 176 | * @throws \OCP\Files\NotPermittedException |
| 177 | - * @return string |
|
| 177 | + * @return \OCP\Files\Node |
|
| 178 | 178 | */ |
| 179 | 179 | public function get($path) { |
| 180 | 180 | $path = $this->normalizePath($path); |
@@ -371,6 +371,9 @@ discard block |
||
| 371 | 371 | |
| 372 | 372 | } |
| 373 | 373 | |
| 374 | + /** |
|
| 375 | + * @param string $fullPath |
|
| 376 | + */ |
|
| 374 | 377 | private function resolveVirtualNode($fullPath) { |
| 375 | 378 | $pieces = explode('/', $fullPath); |
| 376 | 379 | if ($pieces[1] !== 'meta') { |
@@ -721,7 +721,7 @@ |
||
| 721 | 721 | } |
| 722 | 722 | |
| 723 | 723 | /** |
| 724 | - * @param $internalPath |
|
| 724 | + * @param string $internalPath |
|
| 725 | 725 | * @return array|string |
| 726 | 726 | */ |
| 727 | 727 | private function convertInternalPathToGlobalPath($internalPath) { |
@@ -26,7 +26,6 @@ |
||
| 26 | 26 | use OC\Files\Meta\MetaFileVersionNode; |
| 27 | 27 | use OCA\DAV\Files\ICopySource; |
| 28 | 28 | use OCA\DAV\Files\IFileNode; |
| 29 | -use OCP\Files\FileInfo; |
|
| 30 | 29 | use OCP\Files\Node; |
| 31 | 30 | use Sabre\DAV\File; |
| 32 | 31 | |
@@ -257,7 +257,6 @@ discard block |
||
| 257 | 257 | * Sets the path of the file you want a preview of |
| 258 | 258 | * |
| 259 | 259 | * @param File $file |
| 260 | - * @param \OCP\Files\FileInfo|null $info |
|
| 261 | 260 | * @param string $versionId |
| 262 | 261 | * |
| 263 | 262 | * @return Preview |
@@ -919,7 +918,7 @@ discard block |
||
| 919 | 918 | * @param int $previewWidth |
| 920 | 919 | * @param int $previewHeight |
| 921 | 920 | * |
| 922 | - * @return int[] |
|
| 921 | + * @return double[] |
|
| 923 | 922 | */ |
| 924 | 923 | private function scale($image, $askedWidth, $askedHeight, $previewWidth, $previewHeight) { |
| 925 | 924 | $scalingUp = $this->getScalingUp(); |