@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | |
174 | 174 | /** |
175 | 175 | * @param Node $node |
176 | - * @param $correctChecksum |
|
176 | + * @param string $correctChecksum |
|
177 | 177 | * @throws NotFoundException |
178 | 178 | * @throws \OCP\Files\InvalidPathException |
179 | 179 | * @throws \OCP\Files\StorageNotAvailableException |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | } |
189 | 189 | |
190 | 190 | /** |
191 | - * @param $path |
|
191 | + * @param string $path |
|
192 | 192 | * @param IStorage $storage |
193 | 193 | * @return string |
194 | 194 | * @throws \OCP\Files\StorageNotAvailableException |
@@ -28,7 +28,6 @@ discard block |
||
28 | 28 | |
29 | 29 | namespace OC; |
30 | 30 | |
31 | -use OCP\Files\Folder; |
|
32 | 31 | use OCP\Files\NotFoundException; |
33 | 32 | use OCP\Files\Storage\IStorage; |
34 | 33 | use OCP\IAvatarManager; |
@@ -36,7 +35,6 @@ discard block |
||
36 | 35 | use OCP\IUserManager; |
37 | 36 | use OCP\Files\IRootFolder; |
38 | 37 | use OCP\IL10N; |
39 | -use OCP\IUser; |
|
40 | 38 | |
41 | 39 | /** |
42 | 40 | * This class implements methods to access Avatar functionality |
@@ -368,7 +368,7 @@ |
||
368 | 368 | /** |
369 | 369 | * Get the parent folder of the file or folder |
370 | 370 | * |
371 | - * @return Folder |
|
371 | + * @return null|Folder |
|
372 | 372 | * @since 6.0.0 |
373 | 373 | */ |
374 | 374 | public function getParent() { |
@@ -77,6 +77,9 @@ discard block |
||
77 | 77 | return $this->storage->getPermissions($path) & $this->mask; |
78 | 78 | } |
79 | 79 | |
80 | + /** |
|
81 | + * @param string $path |
|
82 | + */ |
|
80 | 83 | private function isPartFile($path) { |
81 | 84 | return pathinfo($path, PATHINFO_EXTENSION) === 'part'; |
82 | 85 | } |
@@ -126,7 +129,7 @@ discard block |
||
126 | 129 | * |
127 | 130 | * @param string $path |
128 | 131 | * @param \OC\Files\Storage\Storage (optional) the storage to pass to the cache |
129 | - * @return \OC\Files\Cache\Cache |
|
132 | + * @return \OCP\Files\Cache\ICache |
|
130 | 133 | */ |
131 | 134 | public function getCache($path = '', $storage = null) { |
132 | 135 | if (!$storage) { |