@@ -49,7 +49,6 @@ discard block |
||
| 49 | 49 | /** |
| 50 | 50 | * saves database scheme to xml file |
| 51 | 51 | * @param string $file name of file |
| 52 | - * @param int|string $mode |
|
| 53 | 52 | * @return bool |
| 54 | 53 | * |
| 55 | 54 | * TODO: write more documentation |
@@ -123,7 +122,7 @@ discard block |
||
| 123 | 122 | /** |
| 124 | 123 | * update the database scheme |
| 125 | 124 | * @param string $file file to read structure from |
| 126 | - * @return string|boolean |
|
| 125 | + * @return boolean |
|
| 127 | 126 | */ |
| 128 | 127 | public function simulateUpdateDbFromStructure($file) { |
| 129 | 128 | $toSchema = $this->readSchemaFromFile($file); |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | protected $config; |
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | - * @param \Doctrine\DBAL\Connection $connection |
|
| 55 | + * @param Connection $connection |
|
| 56 | 56 | * @param ISecureRandom $random |
| 57 | 57 | * @param IConfig $config |
| 58 | 58 | */ |
@@ -261,6 +261,9 @@ |
||
| 261 | 261 | return $footer; |
| 262 | 262 | } |
| 263 | 263 | |
| 264 | + /** |
|
| 265 | + * @param string $key |
|
| 266 | + */ |
|
| 264 | 267 | public function buildDocLinkToKey($key) { |
| 265 | 268 | if ($this->themeExist('buildDocLinkToKey')) { |
| 266 | 269 | return $this->theme->buildDocLinkToKey($key); |
@@ -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 |
@@ -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 | */ |
@@ -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); |
@@ -8,14 +8,11 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace OC\Files\Node; |
| 10 | 10 | |
| 11 | -use OC\Files\Cache\Cache; |
|
| 12 | 11 | use OC\Files\Mount\Manager; |
| 13 | 12 | use OC\Files\Mount\MountPoint; |
| 14 | 13 | use OCP\Files\NotFoundException; |
| 15 | 14 | use OCP\Files\NotPermittedException; |
| 16 | -use OC\Hooks\Emitter; |
|
| 17 | 15 | use OC\Hooks\PublicEmitter; |
| 18 | - |
|
| 19 | 16 | use OCP\Files\IRootFolder; |
| 20 | 17 | |
| 21 | 18 | /** |
@@ -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]); |