@@ -195,7 +195,7 @@ |
||
195 | 195 | /** |
196 | 196 | * search for files by tag |
197 | 197 | * |
198 | - * @param string|int $tag name or tag id |
|
198 | + * @param string $tag name or tag id |
|
199 | 199 | * @param string $userId owner of the tags |
200 | 200 | * @return Node[] |
201 | 201 | */ |
@@ -169,7 +169,7 @@ |
||
169 | 169 | * @param string $path |
170 | 170 | * @throws \OCP\Files\NotFoundException |
171 | 171 | * @throws \OCP\Files\NotPermittedException |
172 | - * @return \OCP\Files\Node |
|
172 | + * @return string |
|
173 | 173 | */ |
174 | 174 | public function get($path) { |
175 | 175 | $path = $this->normalizePath($path); |
@@ -369,7 +369,7 @@ |
||
369 | 369 | * get the ETag for a file or folder |
370 | 370 | * |
371 | 371 | * @param string $path |
372 | - * @return string|false |
|
372 | + * @return string |
|
373 | 373 | */ |
374 | 374 | public function getETag($path) { |
375 | 375 | return uniqid(); |
@@ -777,7 +777,7 @@ |
||
777 | 777 | /** |
778 | 778 | * check if path points to a files version |
779 | 779 | * |
780 | - * @param $path |
|
780 | + * @param string $path |
|
781 | 781 | * @return bool |
782 | 782 | */ |
783 | 783 | protected function isVersion($path) { |
@@ -58,6 +58,7 @@ |
||
58 | 58 | |
59 | 59 | /** |
60 | 60 | * @param string $path |
61 | + * @param string[] $content |
|
61 | 62 | */ |
62 | 63 | public static function register($path, $content) { |
63 | 64 | self::$dirs[$path] = $content; |
@@ -175,7 +175,7 @@ |
||
175 | 175 | * |
176 | 176 | * @param resource $source |
177 | 177 | * @param string $mode |
178 | - * @param array $context |
|
178 | + * @param resource $context |
|
179 | 179 | * @param string $protocol |
180 | 180 | * @param string $class |
181 | 181 | * @return resource |
@@ -144,6 +144,9 @@ |
||
144 | 144 | return true; |
145 | 145 | } |
146 | 146 | |
147 | + /** |
|
148 | + * @param string $path |
|
149 | + */ |
|
147 | 150 | public function url_stat($path) { |
148 | 151 | if (isset(self::$data[$path])) { |
149 | 152 | $size = strlen(self::$data[$path]); |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | } |
122 | 122 | |
123 | 123 | /** |
124 | - * @return array |
|
124 | + * @return string[] |
|
125 | 125 | */ |
126 | 126 | public function getAllAliases() { |
127 | 127 | $this->loadAliases(); |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | |
265 | 265 | /** |
266 | 266 | * Get path to the icon of a file type |
267 | - * @param string $mimeType the MIME type |
|
267 | + * @param string $mimetype the MIME type |
|
268 | 268 | * @return string the url |
269 | 269 | */ |
270 | 270 | public function mimeTypeIcon($mimetype) { |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | * and does not take the chroot into account ) |
194 | 194 | * |
195 | 195 | * @param string $path |
196 | - * @return \OCP\Files\Mount\IMountPoint |
|
196 | + * @return Mount\MountPoint|null |
|
197 | 197 | */ |
198 | 198 | public function getMount($path) { |
199 | 199 | return Filesystem::getMountManager()->find($this->getAbsolutePath($path)); |
@@ -878,7 +878,7 @@ discard block |
||
878 | 878 | |
879 | 879 | /** |
880 | 880 | * @param string $path |
881 | - * @return bool|string |
|
881 | + * @return string|false |
|
882 | 882 | * @throws \OCP\Files\InvalidPathException |
883 | 883 | */ |
884 | 884 | public function toTmpFile($path) { |
@@ -44,7 +44,6 @@ |
||
44 | 44 | namespace OC\Files; |
45 | 45 | |
46 | 46 | use Icewind\Streams\CallbackWrapper; |
47 | -use OC\Files\Cache\Updater; |
|
48 | 47 | use OC\Files\Mount\MoveableMount; |
49 | 48 | use OC\Files\Storage\Storage; |
50 | 49 | use OC\User\User; |