@@ -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; |
@@ -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; |
@@ -29,9 +29,7 @@ |
||
29 | 29 | use ReflectionClass; |
30 | 30 | use ReflectionException; |
31 | 31 | use Closure; |
32 | - |
|
33 | 32 | use Pimple\Container; |
34 | - |
|
35 | 33 | use OCP\AppFramework\QueryException; |
36 | 34 | use OCP\IContainer; |
37 | 35 |
@@ -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(); |
@@ -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 | */ |