@@ -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) { |
@@ -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; |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | /** |
| 161 | 161 | * gets last value of autoincrement |
| 162 | 162 | * @param string $table The optional table name (will replace *PREFIX*) and add sequence suffix |
| 163 | - * @return string id |
|
| 163 | + * @return integer id |
|
| 164 | 164 | * @throws \OC\DatabaseException |
| 165 | 165 | * |
| 166 | 166 | * \Doctrine\DBAL\Connection lastInsertId |
@@ -196,7 +196,6 @@ discard block |
||
| 196 | 196 | /** |
| 197 | 197 | * saves database schema to xml file |
| 198 | 198 | * @param string $file name of file |
| 199 | - * @param int $mode |
|
| 200 | 199 | * @return bool |
| 201 | 200 | * |
| 202 | 201 | * TODO: write more documentation |
@@ -240,7 +239,7 @@ discard block |
||
| 240 | 239 | * simulate the database schema update |
| 241 | 240 | * @param string $file file to read structure from |
| 242 | 241 | * @throws Exception |
| 243 | - * @return string|boolean |
|
| 242 | + * @return boolean |
|
| 244 | 243 | */ |
| 245 | 244 | public static function simulateUpdateDbFromStructure($file) { |
| 246 | 245 | $schemaManager = self::getMDB2SchemaManager(); |
@@ -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; |