@@ -53,7 +53,7 @@ |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | - * @return \OCP\Diagnostics\IQuery[] |
|
| 56 | + * @return Query[] |
|
| 57 | 57 | */ |
| 58 | 58 | public function getQueries() { |
| 59 | 59 | return $this->queries; |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | * send a message to the client |
| 89 | 89 | * |
| 90 | 90 | * @param string $type |
| 91 | - * @param mixed $data |
|
| 91 | + * @param string $data |
|
| 92 | 92 | * |
| 93 | 93 | * @throws \BadMethodCallException |
| 94 | 94 | * if only one parameter is given, a typeless message will be send with that parameter as data |
@@ -159,6 +159,8 @@ discard block |
||
| 159 | 159 | /** |
| 160 | 160 | * @param View $view |
| 161 | 161 | * @param string $name |
| 162 | + * @param string $dir |
|
| 163 | + * @param boolean $onlyHeader |
|
| 162 | 164 | */ |
| 163 | 165 | private static function getSingleFile($view, $dir, $name, $onlyHeader) { |
| 164 | 166 | $filename = $dir . '/' . $name; |
@@ -184,7 +186,7 @@ discard block |
||
| 184 | 186 | |
| 185 | 187 | /** |
| 186 | 188 | * @param View $view |
| 187 | - * @param $dir |
|
| 189 | + * @param string $dir |
|
| 188 | 190 | * @param string[]|string $files |
| 189 | 191 | */ |
| 190 | 192 | public static function lockFiles($view, $dir, $files) { |
@@ -289,11 +291,11 @@ discard block |
||
| 289 | 291 | } |
| 290 | 292 | |
| 291 | 293 | /** |
| 292 | - * @param $dir |
|
| 294 | + * @param string $dir |
|
| 293 | 295 | * @param $files |
| 294 | - * @param $getType |
|
| 296 | + * @param integer $getType |
|
| 295 | 297 | * @param View $view |
| 296 | - * @param $filename |
|
| 298 | + * @param string $filename |
|
| 297 | 299 | */ |
| 298 | 300 | private static function unlockAllTheFiles($dir, $files, $getType, $view, $filename) { |
| 299 | 301 | if ($getType === self::FILE) { |
@@ -185,7 +185,7 @@ |
||
| 185 | 185 | } |
| 186 | 186 | |
| 187 | 187 | /** |
| 188 | - * @return \OCP\Files\FileInfo::TYPE_FILE|\OCP\Files\FileInfo::TYPE_FOLDER |
|
| 188 | + * @return string |
|
| 189 | 189 | */ |
| 190 | 190 | public function getType() { |
| 191 | 191 | if (!isset($this->data['type'])) { |
@@ -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 | */ |
@@ -155,6 +155,9 @@ |
||
| 155 | 155 | return true; |
| 156 | 156 | } |
| 157 | 157 | |
| 158 | + /** |
|
| 159 | + * @param string $path |
|
| 160 | + */ |
|
| 158 | 161 | private function rmObjects($path) { |
| 159 | 162 | $children = $this->getCache()->getFolderContents($path); |
| 160 | 163 | foreach ($children as $child) { |
@@ -54,6 +54,9 @@ |
||
| 54 | 54 | $this->flysystem->addPlugin(new GetWithMetadata()); |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | + /** |
|
| 58 | + * @param string $path |
|
| 59 | + */ |
|
| 57 | 60 | protected function buildPath($path) { |
| 58 | 61 | $fullPath = \OC\Files\Filesystem::normalizePath($this->root . '/' . $path); |
| 59 | 62 | return ltrim($fullPath, '/'); |
@@ -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 |