@@ -271,8 +271,8 @@ |
||
| 271 | 271 | } |
| 272 | 272 | |
| 273 | 273 | /** |
| 274 | - * @param $username |
|
| 275 | - * @param $password |
|
| 274 | + * @param string $username |
|
| 275 | + * @param string $password |
|
| 276 | 276 | * @return bool |
| 277 | 277 | */ |
| 278 | 278 | public function auth($username, $password) { |
@@ -327,7 +327,7 @@ |
||
| 327 | 327 | * split user and remote from federated cloud id |
| 328 | 328 | * |
| 329 | 329 | * @param string $address federated share address |
| 330 | - * @return array [user, remoteURL] |
|
| 330 | + * @return string[] [user, remoteURL] |
|
| 331 | 331 | * @throws \Exception |
| 332 | 332 | */ |
| 333 | 333 | public function splitUserRemote($address) { |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | * Looks up a system wide defined value |
| 112 | 112 | * |
| 113 | 113 | * @param string $key the key of the value, under which it was saved |
| 114 | - * @param mixed $default the default value to be returned if the value isn't set |
|
| 114 | + * @param string $default the default value to be returned if the value isn't set |
|
| 115 | 115 | * @return mixed the value or $default |
| 116 | 116 | */ |
| 117 | 117 | public function getSystemValue($key, $default = '') { |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | /** |
| 94 | 94 | * Formats the date of the given timestamp |
| 95 | 95 | * |
| 96 | - * @param int|\DateTime $timestamp Either a Unix timestamp or DateTime object |
|
| 96 | + * @param integer $timestamp Either a Unix timestamp or DateTime object |
|
| 97 | 97 | * @param string $format Either 'full', 'long', 'medium' or 'short' |
| 98 | 98 | * full: e.g. 'EEEE, MMMM d, y' => 'Wednesday, August 20, 2014' |
| 99 | 99 | * long: e.g. 'MMMM d, y' => 'August 20, 2014' |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | /** |
| 193 | 193 | * Gives the relative past time of the timestamp |
| 194 | 194 | * |
| 195 | - * @param int|\DateTime $timestamp Either a Unix timestamp or DateTime object |
|
| 195 | + * @param integer $timestamp Either a Unix timestamp or DateTime object |
|
| 196 | 196 | * @param int|\DateTime $baseTimestamp Timestamp to compare $timestamp against, defaults to current time |
| 197 | 197 | * @return string Dates returned are: |
| 198 | 198 | * < 60 sec => seconds ago |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | /** |
| 229 | 229 | * Formats the date and time of the given timestamp |
| 230 | 230 | * |
| 231 | - * @param int|\DateTime $timestamp Either a Unix timestamp or DateTime object |
|
| 231 | + * @param integer $timestamp Either a Unix timestamp or DateTime object |
|
| 232 | 232 | * @param string $formatDate See formatDate() for description |
| 233 | 233 | * @param string $formatTime See formatTime() for description |
| 234 | 234 | * @param \DateTimeZone $timeZone The timezone to use |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | * make preview_icon available as a simple function |
| 184 | 184 | * Returns the path to the preview of the image. |
| 185 | 185 | * @param string $path path of file |
| 186 | - * @return link to the preview |
|
| 186 | + * @return string to the preview |
|
| 187 | 187 | * |
| 188 | 188 | * For further information have a look at OC_Helper::previewIcon |
| 189 | 189 | */ |
@@ -193,6 +193,7 @@ discard block |
||
| 193 | 193 | |
| 194 | 194 | /** |
| 195 | 195 | * @param string $path |
| 196 | + * @param string $token |
|
| 196 | 197 | */ |
| 197 | 198 | function publicPreview_icon ( $path, $token ) { |
| 198 | 199 | return OC_Helper::publicPreviewIcon( $path, $token ); |
@@ -238,6 +238,7 @@ |
||
| 238 | 238 | |
| 239 | 239 | /** |
| 240 | 240 | * Sets user id for session and triggers emit |
| 241 | + * @param string $uid |
|
| 241 | 242 | */ |
| 242 | 243 | public static function setUserId($uid) { |
| 243 | 244 | $userSession = \OC::$server->getUserSession(); |
@@ -45,6 +45,7 @@ discard block |
||
| 45 | 45 | class Files { |
| 46 | 46 | /** |
| 47 | 47 | * Recusive deletion of folders |
| 48 | + * @param string $dir |
|
| 48 | 49 | * @return bool |
| 49 | 50 | * @since 5.0.0 |
| 50 | 51 | */ |
@@ -66,7 +67,7 @@ discard block |
||
| 66 | 67 | /** |
| 67 | 68 | * Search for files by mimetype |
| 68 | 69 | * @param string $mimetype |
| 69 | - * @return array |
|
| 70 | + * @return \OC\Files\FileInfo[] |
|
| 70 | 71 | * @since 6.0.0 |
| 71 | 72 | */ |
| 72 | 73 | static public function searchByMime( $mimetype ) { |
@@ -329,7 +329,7 @@ |
||
| 329 | 329 | |
| 330 | 330 | /** |
| 331 | 331 | * http basic auth |
| 332 | - * @return string|false (username, or false on failure) |
|
| 332 | + * @return string (username, or false on failure) |
|
| 333 | 333 | */ |
| 334 | 334 | private static function loginUser() { |
| 335 | 335 | if(self::$isLoggedIn === true) { |
@@ -152,7 +152,7 @@ |
||
| 152 | 152 | |
| 153 | 153 | /** |
| 154 | 154 | * @param string $gid |
| 155 | - * @return \OCP\IGroup |
|
| 155 | + * @return null|Group |
|
| 156 | 156 | */ |
| 157 | 157 | protected function getGroupObject($gid) { |
| 158 | 158 | $backends = array(); |