@@ -982,7 +982,7 @@ |
||
| 982 | 982 | /** |
| 983 | 983 | * check if path points to a files version |
| 984 | 984 | * |
| 985 | - * @param $path |
|
| 985 | + * @param string $path |
|
| 986 | 986 | * @return bool |
| 987 | 987 | */ |
| 988 | 988 | protected function isVersion($path) { |
@@ -473,7 +473,7 @@ |
||
| 473 | 473 | /** |
| 474 | 474 | * get database row of a give share |
| 475 | 475 | * |
| 476 | - * @param $id |
|
| 476 | + * @param integer $id |
|
| 477 | 477 | * @return array |
| 478 | 478 | * @throws ShareNotFound |
| 479 | 479 | */ |
@@ -299,8 +299,8 @@ |
||
| 299 | 299 | } |
| 300 | 300 | |
| 301 | 301 | /** |
| 302 | - * @param $username |
|
| 303 | - * @param $password |
|
| 302 | + * @param string $username |
|
| 303 | + * @param string $password |
|
| 304 | 304 | * @return bool |
| 305 | 305 | */ |
| 306 | 306 | public function auth($username, $password) { |
@@ -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]); |
@@ -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]); |
@@ -544,7 +544,7 @@ |
||
| 544 | 544 | * @param array $input The array to work on |
| 545 | 545 | * @param int $case Either MB_CASE_UPPER or MB_CASE_LOWER (default) |
| 546 | 546 | * @param string $encoding The encoding parameter is the character encoding. Defaults to UTF-8 |
| 547 | - * @return array |
|
| 547 | + * @return string |
|
| 548 | 548 | * @since 4.5.0 |
| 549 | 549 | */ |
| 550 | 550 | public static function mb_array_change_key_case($input, $case = MB_CASE_LOWER, $encoding = 'UTF-8') { |
@@ -335,7 +335,7 @@ |
||
| 335 | 335 | * split user and remote from federated cloud id |
| 336 | 336 | * |
| 337 | 337 | * @param string $address federated share address |
| 338 | - * @return array [user, remoteURL] |
|
| 338 | + * @return string[] [user, remoteURL] |
|
| 339 | 339 | * @throws \Exception |
| 340 | 340 | */ |
| 341 | 341 | public function splitUserRemote($address) { |
@@ -325,6 +325,9 @@ |
||
| 325 | 325 | return $result; |
| 326 | 326 | } |
| 327 | 327 | |
| 328 | + /** |
|
| 329 | + * @param string $mountPoint |
|
| 330 | + */ |
|
| 328 | 331 | public function removeShare($mountPoint) { |
| 329 | 332 | |
| 330 | 333 | $mountPointObj = $this->mountManager->find($mountPoint); |
@@ -130,7 +130,6 @@ |
||
| 130 | 130 | /** |
| 131 | 131 | * Get $n re-shares from the database |
| 132 | 132 | * |
| 133 | - * @param int $n The max number of shares to fetch |
|
| 134 | 133 | * @return \Doctrine\DBAL\Driver\Statement |
| 135 | 134 | */ |
| 136 | 135 | private function getReShares() { |