@@ -110,6 +110,7 @@ |
||
110 | 110 | * |
111 | 111 | * @param string &$zsyncMetadata actual metadata |
112 | 112 | * @param string $destination destination path |
113 | + * @param string|null $zsyncMetadata |
|
113 | 114 | */ |
114 | 115 | private function postMoveZsync(&$zsyncMetadata, $destination) { |
115 | 116 | if (!$zsyncMetadata) |
@@ -432,6 +432,9 @@ |
||
432 | 432 | }, $accounts); |
433 | 433 | } |
434 | 434 | |
435 | + /** |
|
436 | + * @param string $backendClass |
|
437 | + */ |
|
435 | 438 | public function getBackend($backendClass) { |
436 | 439 | if (isset($this->backends[$backendClass])) { |
437 | 440 | return $this->backends[$backendClass]; |
@@ -41,9 +41,6 @@ |
||
41 | 41 | use OCP\IUser; |
42 | 42 | use OCP\IUserManager; |
43 | 43 | use OCP\IConfig; |
44 | -use OCP\User\IProvidesExtendedSearchBackend; |
|
45 | -use OCP\User\IProvidesEMailBackend; |
|
46 | -use OCP\User\IProvidesQuotaBackend; |
|
47 | 44 | use OCP\UserInterface; |
48 | 45 | use OCP\Util\UserSearch; |
49 | 46 | use Symfony\Component\EventDispatcher\GenericEvent; |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | * |
79 | 79 | * @param Account $account |
80 | 80 | * @param AccountMapper $mapper |
81 | - * @param null $emitter |
|
81 | + * @param Manager $emitter |
|
82 | 82 | * @param IConfig|null $config |
83 | 83 | * @param null $urlGenerator |
84 | 84 | * @param EventDispatcher|null $eventDispatcher |
@@ -452,6 +452,10 @@ discard block |
||
452 | 452 | return $url; |
453 | 453 | } |
454 | 454 | |
455 | + /** |
|
456 | + * @param string $feature |
|
457 | + * @param string $value |
|
458 | + */ |
|
455 | 459 | public function triggerChange($feature, $value = null) { |
456 | 460 | if ($this->emitter && in_array($feature, $this->account->getUpdatedFields())) { |
457 | 461 | $this->emitter->emit('\OC\User', 'changeUser', [$this, $feature, $value]); |
@@ -43,7 +43,6 @@ |
||
43 | 43 | use OCP\IUserBackend; |
44 | 44 | use OCP\IUserSession; |
45 | 45 | use OCP\User\IChangePasswordBackend; |
46 | -use OCP\UserInterface; |
|
47 | 46 | use Symfony\Component\EventDispatcher\EventDispatcher; |
48 | 47 | use Symfony\Component\EventDispatcher\GenericEvent; |
49 | 48 |
@@ -109,7 +109,7 @@ |
||
109 | 109 | /** |
110 | 110 | * Returns the Reply-To address of this message |
111 | 111 | * |
112 | - * @return array |
|
112 | + * @return string |
|
113 | 113 | */ |
114 | 114 | public function getReplyTo() { |
115 | 115 | return $this->swiftMessage->getReplyTo(); |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | /** |
123 | 123 | * List all installed apps |
124 | 124 | * |
125 | - * @return string[] |
|
125 | + * @return integer[] |
|
126 | 126 | */ |
127 | 127 | public function getInstalledApps() { |
128 | 128 | return array_keys($this->getInstalledAppsValues()); |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | /** |
232 | 232 | * Do not allow more than one active app-theme |
233 | 233 | * |
234 | - * @param $appId |
|
234 | + * @param string $appId |
|
235 | 235 | * @throws AppManagerException |
236 | 236 | */ |
237 | 237 | protected function canEnableTheme($appId) { |
@@ -390,6 +390,9 @@ discard block |
||
390 | 390 | return in_array($appId, $this->shippedApps); |
391 | 391 | } |
392 | 392 | |
393 | + /** |
|
394 | + * @param string $appId |
|
395 | + */ |
|
393 | 396 | private function isAlwaysEnabled($appId) { |
394 | 397 | $alwaysEnabled = $this->getAlwaysEnabledApps(); |
395 | 398 | return in_array($appId, $alwaysEnabled); |
@@ -418,7 +421,7 @@ discard block |
||
418 | 421 | /** |
419 | 422 | * @param string $package package path |
420 | 423 | * @param bool $skipMigrations whether to skip migrations, which would only install the code |
421 | - * @return string|false app id or false in case of error |
|
424 | + * @return integer app id or false in case of error |
|
422 | 425 | * @since 10.0 |
423 | 426 | */ |
424 | 427 | public function installApp($package, $skipMigrations = false) { |
@@ -431,7 +434,7 @@ discard block |
||
431 | 434 | |
432 | 435 | /** |
433 | 436 | * @param string $package |
434 | - * @return mixed |
|
437 | + * @return boolean |
|
435 | 438 | * @since 10.0 |
436 | 439 | */ |
437 | 440 | public function updateApp($package) { |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * @param string $wrongPath wrong path of the entry to fix |
96 | 96 | * @param int $correctStorageNumericId numeric idea of the correct storage |
97 | 97 | * @param string $correctPath value to which to set the path of the entry |
98 | - * @return bool true for success |
|
98 | + * @return boolean|null true for success |
|
99 | 99 | */ |
100 | 100 | private function fixEntryPath(IOutput $out, $fileId, $wrongPath, $correctStorageNumericId, $correctPath) { |
101 | 101 | // delete target if exists |
@@ -125,6 +125,9 @@ discard block |
||
125 | 125 | $out->advance(1, $text); |
126 | 126 | } |
127 | 127 | |
128 | + /** |
|
129 | + * @param \OCP\DB\QueryBuilder\IQueryBuilder $qb |
|
130 | + */ |
|
128 | 131 | private function addQueryConditionsParentIdWrongPath($qb) { |
129 | 132 | // thanks, VicDeo! |
130 | 133 | if ($this->connection->getDatabasePlatform() instanceof MySqlPlatform) { |
@@ -164,6 +167,9 @@ discard block |
||
164 | 167 | } |
165 | 168 | } |
166 | 169 | |
170 | + /** |
|
171 | + * @param \OCP\DB\QueryBuilder\IQueryBuilder $qb |
|
172 | + */ |
|
167 | 173 | private function addQueryConditionsNonExistingParentIdEntry($qb, $storageNumericId = null) { |
168 | 174 | // Subquery for parent existence |
169 | 175 | $qbe = $this->connection->getQueryBuilder(); |
@@ -193,6 +199,9 @@ discard block |
||
193 | 199 | } |
194 | 200 | } |
195 | 201 | |
202 | + /** |
|
203 | + * @param integer $storageNumericId |
|
204 | + */ |
|
196 | 205 | private function countResultsToProcessParentIdWrongPath($storageNumericId = null) { |
197 | 206 | $qb = $this->connection->getQueryBuilder(); |
198 | 207 | $qb->select($qb->createFunction('COUNT(*)')); |
@@ -203,6 +212,9 @@ discard block |
||
203 | 212 | return $count; |
204 | 213 | } |
205 | 214 | |
215 | + /** |
|
216 | + * @param integer $storageNumericId |
|
217 | + */ |
|
206 | 218 | private function countResultsToProcessNonExistingParentIdEntry($storageNumericId = null) { |
207 | 219 | $qb = $this->connection->getQueryBuilder(); |
208 | 220 | $qb->select($qb->createFunction('COUNT(*)')); |
@@ -353,6 +365,7 @@ discard block |
||
353 | 365 | * |
354 | 366 | * @param int $storageId storage id |
355 | 367 | * @param string $path path for which to create the parent entry |
368 | + * @param integer $reuseFileId |
|
356 | 369 | * @return int file id of the newly created parent |
357 | 370 | */ |
358 | 371 | private function getOrCreateEntry($storageId, $path, $reuseFileId = null) { |
@@ -278,7 +278,7 @@ |
||
278 | 278 | } |
279 | 279 | |
280 | 280 | /** |
281 | - * @param string[] $subTree |
|
281 | + * @param string[] $subTrees |
|
282 | 282 | * @return bool |
283 | 283 | */ |
284 | 284 | private function isRequestForSubtree(array $subTrees) { |
@@ -311,6 +311,11 @@ |
||
311 | 311 | } |
312 | 312 | } |
313 | 313 | |
314 | + /** |
|
315 | + * @param InputInterface $input |
|
316 | + * @param OutputInterface $output |
|
317 | + * @param boolean $shouldRepairStoragesIndividually |
|
318 | + */ |
|
314 | 319 | protected function processUserChunks($input, $output, $users, $inputPath, $shouldRepairStoragesIndividually, $group = null) { |
315 | 320 | # no messaging level option means: no full printout but statistics |
316 | 321 | # $quiet means no print at all |
@@ -284,6 +284,9 @@ discard block |
||
284 | 284 | return $this->leave(__FUNCTION__, $result); |
285 | 285 | } |
286 | 286 | |
287 | + /** |
|
288 | + * @param string $path |
|
289 | + */ |
|
287 | 290 | private function removeFromCache($path) { |
288 | 291 | $path = trim($path, '/'); |
289 | 292 | // TODO The CappedCache does not really clear by prefix. It just clears all. |
@@ -673,7 +676,7 @@ discard block |
||
673 | 676 | * if smb.logging.enable is set to true in the config will log a leave line |
674 | 677 | * with the given function, the return value or the exception |
675 | 678 | * |
676 | - * @param $function |
|
679 | + * @param string $function |
|
677 | 680 | * @param mixed $result an exception will be logged and then returned |
678 | 681 | * @return mixed |
679 | 682 | */ |
@@ -700,6 +703,9 @@ discard block |
||
700 | 703 | return $result; |
701 | 704 | } |
702 | 705 | |
706 | + /** |
|
707 | + * @param string $function |
|
708 | + */ |
|
703 | 709 | private function swallow($function, \Exception $exception) { |
704 | 710 | if (\OC::$server->getConfig()->getSystemValue('smb.logging.enable', false) === true) { |
705 | 711 | Util::writeLog('smb', "$function swallowing ".get_class($exception) |