@@ -111,7 +111,7 @@ discard block |
||
| 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 = '') { |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | * @param string $userId the userId of the user that we want to store the value under |
| 265 | 265 | * @param string $appName the appName that we stored the value under |
| 266 | 266 | * @param string $key the key under which the value is being stored |
| 267 | - * @param mixed $default the default value to be returned if the value isn't set |
|
| 267 | + * @param null|string $default the default value to be returned if the value isn't set |
|
| 268 | 268 | * @return string |
| 269 | 269 | */ |
| 270 | 270 | public function getUserValue($userId, $appName, $key, $default = '') { |
@@ -381,7 +381,7 @@ discard block |
||
| 381 | 381 | * |
| 382 | 382 | * @param string $appName app to get the value for |
| 383 | 383 | * @param string $key the key to get the value for |
| 384 | - * @param array $userIds the user IDs to fetch the values for |
|
| 384 | + * @param string[] $userIds the user IDs to fetch the values for |
|
| 385 | 385 | * @return array Mapped values: userId => value |
| 386 | 386 | */ |
| 387 | 387 | public function getUserValueForUsers($appName, $key, $userIds) { |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | /** |
| 189 | 189 | * merge the returned result objects into one response |
| 190 | 190 | * @param array $responses |
| 191 | - * @return array|\OC_OCS_Result |
|
| 191 | + * @return OC_OCS_Result |
|
| 192 | 192 | */ |
| 193 | 193 | public static function mergeResponses($responses) { |
| 194 | 194 | // Sort into shipped and third-party |
@@ -334,7 +334,7 @@ discard block |
||
| 334 | 334 | |
| 335 | 335 | /** |
| 336 | 336 | * http basic auth |
| 337 | - * @return string|false (username, or false on failure) |
|
| 337 | + * @return string (username, or false on failure) |
|
| 338 | 338 | */ |
| 339 | 339 | private static function loginUser() { |
| 340 | 340 | if(self::$isLoggedIn === true) { |
@@ -440,6 +440,7 @@ discard block |
||
| 440 | 440 | |
| 441 | 441 | /** |
| 442 | 442 | * Based on the requested format the response content type is set |
| 443 | + * @param string $format |
|
| 443 | 444 | */ |
| 444 | 445 | public static function setContentType($format = null) { |
| 445 | 446 | $format = is_null($format) ? self::requestedFormat() : $format; |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | /** |
| 89 | 89 | * List all installed apps |
| 90 | 90 | * |
| 91 | - * @return string[] |
|
| 91 | + * @return integer[] |
|
| 92 | 92 | */ |
| 93 | 93 | public function getInstalledApps() { |
| 94 | 94 | return array_keys($this->getInstalledAppsValues()); |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | /** |
| 217 | 217 | * Returns a list of apps that need upgrade |
| 218 | 218 | * |
| 219 | - * @param array $version ownCloud version as array of version components |
|
| 219 | + * @param array $ocVersion ownCloud version as array of version components |
|
| 220 | 220 | * @return array list of app info from apps that need an upgrade |
| 221 | 221 | * |
| 222 | 222 | * @internal |
@@ -289,6 +289,9 @@ discard block |
||
| 289 | 289 | return in_array($appId, $this->shippedApps); |
| 290 | 290 | } |
| 291 | 291 | |
| 292 | + /** |
|
| 293 | + * @param string $appId |
|
| 294 | + */ |
|
| 292 | 295 | private function isAlwaysEnabled($appId) { |
| 293 | 296 | $alwaysEnabled = $this->getAlwaysEnabledApps(); |
| 294 | 297 | return in_array($appId, $alwaysEnabled); |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | * 5.2.6.5 and 5.1 will be turned into 5.2 and 5.1 |
| 74 | 74 | * @param string $first |
| 75 | 75 | * @param string $second |
| 76 | - * @return array first element is the first version, second element is the |
|
| 76 | + * @return string[] first element is the first version, second element is the |
|
| 77 | 77 | * second version |
| 78 | 78 | */ |
| 79 | 79 | private function normalizeVersions($first, $second) { |
@@ -206,6 +206,9 @@ |
||
| 206 | 206 | throw new \UnexpectedValueException('Invalid version string "' . $version . '"' . $extraMessage); |
| 207 | 207 | } |
| 208 | 208 | |
| 209 | + /** |
|
| 210 | + * @param string $stability |
|
| 211 | + */ |
|
| 209 | 212 | private function expandStability($stability) { |
| 210 | 213 | $stability = strtolower($stability); |
| 211 | 214 | switch ($stability) { |
@@ -113,7 +113,7 @@ |
||
| 113 | 113 | |
| 114 | 114 | /** |
| 115 | 115 | * @param string $name |
| 116 | - * @param mixed $value |
|
| 116 | + * @param string $value |
|
| 117 | 117 | */ |
| 118 | 118 | public function registerParameter($name, $value) { |
| 119 | 119 | $this[$name] = $value; |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | * If an SQLLogger is configured, the execution is logged. |
| 168 | 168 | * |
| 169 | 169 | * @param string $query The SQL query to execute. |
| 170 | - * @param array $params The parameters to bind to the query, if any. |
|
| 170 | + * @param string[] $params The parameters to bind to the query, if any. |
|
| 171 | 171 | * @param array $types The types the previous parameters are in. |
| 172 | 172 | * @param \Doctrine\DBAL\Cache\QueryCacheProfile|null $qcp The query cache profile, optional. |
| 173 | 173 | * |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | * columns or sequences. |
| 213 | 213 | * |
| 214 | 214 | * @param string $seqName Name of the sequence object from which the ID should be returned. |
| 215 | - * @return string A string representation of the last inserted ID. |
|
| 215 | + * @return integer A string representation of the last inserted ID. |
|
| 216 | 216 | */ |
| 217 | 217 | public function lastInsertId($seqName = null) |
| 218 | 218 | { |
@@ -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 | */ |