@@ -270,6 +270,9 @@ discard block |
||
| 270 | 270 | return array_values($calendars); |
| 271 | 271 | } |
| 272 | 272 | |
| 273 | + /** |
|
| 274 | + * @param string $principalUri |
|
| 275 | + */ |
|
| 273 | 276 | public function getUsersOwnCalendars($principalUri) { |
| 274 | 277 | $principalUri = $this->convertPrincipal($principalUri, true); |
| 275 | 278 | $fields = array_values($this->propertyMap); |
@@ -1279,7 +1282,7 @@ discard block |
||
| 1279 | 1282 | * @param string $principalUri |
| 1280 | 1283 | * @param string $uri |
| 1281 | 1284 | * @param array $properties |
| 1282 | - * @return mixed |
|
| 1285 | + * @return integer |
|
| 1283 | 1286 | * @throws Forbidden |
| 1284 | 1287 | */ |
| 1285 | 1288 | function createSubscription($principalUri, $uri, array $properties) { |
@@ -1685,6 +1688,9 @@ discard block |
||
| 1685 | 1688 | return $this->sharingBackend->applyShareAcl($resourceId, $acl); |
| 1686 | 1689 | } |
| 1687 | 1690 | |
| 1691 | + /** |
|
| 1692 | + * @param boolean $toV2 |
|
| 1693 | + */ |
|
| 1688 | 1694 | private function convertPrincipal($principalUri, $toV2 = null) { |
| 1689 | 1695 | if ($this->principalBackend->getPrincipalPrefix() === 'principals') { |
| 1690 | 1696 | list(, $name) = URLUtil::splitPath($principalUri); |
@@ -71,6 +71,10 @@ |
||
| 71 | 71 | return $this->findEntities($qb->getSQL(), $qb->getParameters(), $limit, $offset); |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | + /** |
|
| 75 | + * @param \Closure $callback |
|
| 76 | + * @param string $search |
|
| 77 | + */ |
|
| 74 | 78 | public function callForAllGroups($callback, $search) { |
| 75 | 79 | $qb = $this->db->getQueryBuilder(); |
| 76 | 80 | $qb->select(['*']) |
@@ -323,7 +323,7 @@ discard block |
||
| 323 | 323 | * @throws \InvalidArgumentException |
| 324 | 324 | * @throws LoginException |
| 325 | 325 | * @throws PasswordLoginForbiddenException |
| 326 | - * @return boolean |
|
| 326 | + * @return boolean|null |
|
| 327 | 327 | */ |
| 328 | 328 | public function logClientIn($user, $password, IRequest $request) { |
| 329 | 329 | $isTokenPassword = $this->isTokenPassword($password); |
@@ -366,6 +366,9 @@ discard block |
||
| 366 | 366 | return $this->config->getSystemValue('token_auth_enforced', false); |
| 367 | 367 | } |
| 368 | 368 | |
| 369 | + /** |
|
| 370 | + * @param string $username |
|
| 371 | + */ |
|
| 369 | 372 | protected function isTwoFactorEnforced($username) { |
| 370 | 373 | Util::emitHook( |
| 371 | 374 | '\OCA\Files_Sharing\API\Server2Server', |
@@ -988,6 +991,9 @@ discard block |
||
| 988 | 991 | } |
| 989 | 992 | } |
| 990 | 993 | |
| 994 | + /** |
|
| 995 | + * @param IRequest $request |
|
| 996 | + */ |
|
| 991 | 997 | public function verifyAuthHeaders($request) { |
| 992 | 998 | $shallLogout = false; |
| 993 | 999 | try { |
@@ -1019,7 +1025,7 @@ discard block |
||
| 1019 | 1025 | } |
| 1020 | 1026 | |
| 1021 | 1027 | /** |
| 1022 | - * @param $includeBuiltIn |
|
| 1028 | + * @param boolean $includeBuiltIn |
|
| 1023 | 1029 | * @return \Generator | IAuthModule[] |
| 1024 | 1030 | * @throws Exception |
| 1025 | 1031 | */ |
@@ -263,7 +263,7 @@ |
||
| 263 | 263 | * |
| 264 | 264 | * @param \OC\User\User|null|false $user |
| 265 | 265 | * @param string|null $scope string |
| 266 | - * @return array with group ids |
|
| 266 | + * @return integer[] with group ids |
|
| 267 | 267 | */ |
| 268 | 268 | public function getUserGroupIds($user, $scope = null) { |
| 269 | 269 | /** @var \OCP\IGroup[] $groupsForUser */ |
@@ -46,7 +46,6 @@ |
||
| 46 | 46 | use OCP\AppFramework\Db\DoesNotExistException; |
| 47 | 47 | use OCP\AppFramework\Db\MultipleObjectsReturnedException; |
| 48 | 48 | use OCP\GroupInterface; |
| 49 | -use OCP\IDBConnection; |
|
| 50 | 49 | use OCP\IGroup; |
| 51 | 50 | use OCP\IGroupManager; |
| 52 | 51 | |
@@ -30,7 +30,6 @@ |
||
| 30 | 30 | use OCP\Authentication\IAuthModule; |
| 31 | 31 | use OCP\IRequest; |
| 32 | 32 | use OCP\ISession; |
| 33 | -use OCP\IUser; |
|
| 34 | 33 | use OCP\IUserManager; |
| 35 | 34 | use OCP\Session\Exceptions\SessionNotAvailableException; |
| 36 | 35 | |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | * @param Account $account |
| 87 | 87 | * @param AccountMapper $mapper |
| 88 | 88 | * @param MembershipManager $membershipManager |
| 89 | - * @param null $emitter |
|
| 89 | + * @param Manager $emitter |
|
| 90 | 90 | * @param IConfig|null $config |
| 91 | 91 | * @param null $urlGenerator |
| 92 | 92 | * @param EventDispatcher|null $eventDispatcher |
@@ -479,6 +479,10 @@ discard block |
||
| 479 | 479 | return $url; |
| 480 | 480 | } |
| 481 | 481 | |
| 482 | + /** |
|
| 483 | + * @param string $feature |
|
| 484 | + * @param string $value |
|
| 485 | + */ |
|
| 482 | 486 | public function triggerChange($feature, $value = null) { |
| 483 | 487 | if ($this->emitter && in_array($feature, $this->account->getUpdatedFields(), true)) { |
| 484 | 488 | $this->emitter->emit('\OC\User', 'changeUser', [$this, $feature, $value]); |
@@ -113,6 +113,8 @@ |
||
| 113 | 113 | * INTERNAL USE ONLY!! This method isn't part of the IManager interface |
| 114 | 114 | * @internal This should only be used by the RegisterNotifierEventImpl (the real implementation). |
| 115 | 115 | * Do NOT use this method outside as it might not work as expected. |
| 116 | + * @param string $id |
|
| 117 | + * @param string $name |
|
| 116 | 118 | */ |
| 117 | 119 | public function registerBuiltNotifier(INotifier $notifier, $id, $name) { |
| 118 | 120 | if (!isset($this->builtNotifiersHolder[$id]) && !isset($this->notifiersInfo[$id])) { |
@@ -134,7 +134,6 @@ |
||
| 134 | 134 | * @NoAdminRequired |
| 135 | 135 | * @NoSubadminRequired |
| 136 | 136 | * |
| 137 | - * @param string $domain Domain to remove |
|
| 138 | 137 | * @return RedirectResponse Redirection to the settings page. |
| 139 | 138 | */ |
| 140 | 139 | public function removeDomain($id) { |