@@ -100,8 +100,8 @@ |
||
100 | 100 | /** |
101 | 101 | * Return the relative date in relation to today. Returns something like "last hour" or "two month ago" |
102 | 102 | * @param int $timestamp unix timestamp |
103 | - * @param boolean $dateOnly |
|
104 | - * @return \OC_L10N_String human readable interpretation of the timestamp |
|
103 | + * @param integer $dateOnly |
|
104 | + * @return string human readable interpretation of the timestamp |
|
105 | 105 | * |
106 | 106 | * @deprecated 8.0.0 Use \OCP\Template::relative_modified_date() instead |
107 | 107 | */ |
@@ -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') { |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | * and does not take the chroot into account ) |
201 | 201 | * |
202 | 202 | * @param string $path |
203 | - * @return \OCP\Files\Mount\IMountPoint |
|
203 | + * @return Mount\MountPoint|null |
|
204 | 204 | */ |
205 | 205 | public function getMount($path) { |
206 | 206 | return Filesystem::getMountManager()->find($this->getAbsolutePath($path)); |
@@ -963,7 +963,7 @@ discard block |
||
963 | 963 | |
964 | 964 | /** |
965 | 965 | * @param string $path |
966 | - * @return bool|string |
|
966 | + * @return string|false |
|
967 | 967 | * @throws \OCP\Files\InvalidPathException |
968 | 968 | */ |
969 | 969 | public function toTmpFile($path) { |
@@ -1078,7 +1078,7 @@ discard block |
||
1078 | 1078 | * @param string $path |
1079 | 1079 | * @param array $hooks (optional) |
1080 | 1080 | * @param mixed $extraParam (optional) |
1081 | - * @return mixed |
|
1081 | + * @return string |
|
1082 | 1082 | * @throws \Exception |
1083 | 1083 | * |
1084 | 1084 | * This method takes requests for basic filesystem functions (e.g. reading & writing |
@@ -2086,7 +2086,7 @@ discard block |
||
2086 | 2086 | |
2087 | 2087 | /** |
2088 | 2088 | * @param string $filename |
2089 | - * @return array |
|
2089 | + * @return string[] |
|
2090 | 2090 | * @throws \OC\User\NoUserException |
2091 | 2091 | * @throws NotFoundException |
2092 | 2092 | */ |
@@ -37,7 +37,6 @@ |
||
37 | 37 | /** |
38 | 38 | * RemoveOldCalendarShares constructor. |
39 | 39 | * |
40 | - * @param IDBConnection $db |
|
41 | 40 | */ |
42 | 41 | public function __construct(IDBConnection $connection) { |
43 | 42 | $this->connection = $connection; |
@@ -303,6 +303,7 @@ |
||
303 | 303 | * get default share folder |
304 | 304 | * |
305 | 305 | * @param \OC\Files\View |
306 | + * @param View $view |
|
306 | 307 | * @return string |
307 | 308 | */ |
308 | 309 | public static function getShareFolder($view = null) { |
@@ -89,6 +89,9 @@ |
||
89 | 89 | $this->user = $user; |
90 | 90 | } |
91 | 91 | |
92 | + /** |
|
93 | + * @param string $tagId |
|
94 | + */ |
|
92 | 95 | function createFile($tagId, $data = null) { |
93 | 96 | try { |
94 | 97 | $tags = $this->tagManager->getTagsByIds([$tagId]); |
@@ -273,6 +273,10 @@ discard block |
||
273 | 273 | return '/^' . preg_quote($this->config->getSystemValue('dbtableprefix', 'oc_')) . '/'; |
274 | 274 | } |
275 | 275 | |
276 | + /** |
|
277 | + * @param integer $step |
|
278 | + * @param integer $max |
|
279 | + */ |
|
276 | 280 | protected function emit($sql, $step, $max) { |
277 | 281 | if ($this->noEmit) { |
278 | 282 | return; |
@@ -283,6 +287,10 @@ discard block |
||
283 | 287 | $this->dispatcher->dispatch('\OC\DB\Migrator::executeSql', new GenericEvent($sql, [$step+1, $max])); |
284 | 288 | } |
285 | 289 | |
290 | + /** |
|
291 | + * @param integer $step |
|
292 | + * @param integer $max |
|
293 | + */ |
|
286 | 294 | private function emitCheckStep($tableName, $step, $max) { |
287 | 295 | if(is_null($this->dispatcher)) { |
288 | 296 | return; |
@@ -103,6 +103,7 @@ discard block |
||
103 | 103 | |
104 | 104 | /** |
105 | 105 | * Chceks if the ownCloud server can connect to a specific URL using both HTTPS and HTTP |
106 | + * @param string $sitename |
|
106 | 107 | * @return bool |
107 | 108 | */ |
108 | 109 | private function isSiteReachable($sitename) { |
@@ -285,7 +286,7 @@ discard block |
||
285 | 286 | |
286 | 287 | /** |
287 | 288 | * @NoCSRFRequired |
288 | - * @return DataResponse |
|
289 | + * @return DataDisplayResponse |
|
289 | 290 | */ |
290 | 291 | public function getFailedIntegrityCheckFiles() { |
291 | 292 | if(!$this->checker->isCodeCheckEnforced()) { |
@@ -219,7 +219,7 @@ |
||
219 | 219 | * @param array $groupSharesById |
220 | 220 | * @param array $subShares |
221 | 221 | * |
222 | - * @return true if the share is valid, false if it needs repair |
|
222 | + * @return boolean if the share is valid, false if it needs repair |
|
223 | 223 | */ |
224 | 224 | private function isThisShareValid($groupSharesById, $subShares) { |
225 | 225 | $foundTargets = []; |