Update phpdoc for circleToPrincipal
as the QueryException is already catched inside circleToPrincipal. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
ae3bfb97c3
commit
04364169ed
|
@ -178,11 +178,7 @@ class Principal implements BackendInterface {
|
||||||
return $this->userToPrincipal($user);
|
return $this->userToPrincipal($user);
|
||||||
}
|
}
|
||||||
} elseif ($prefix === 'principals/circles') {
|
} elseif ($prefix === 'principals/circles') {
|
||||||
try {
|
return $this->circleToPrincipal($name);
|
||||||
return $this->circleToPrincipal($name);
|
|
||||||
} catch (QueryException $e) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -471,9 +467,6 @@ class Principal implements BackendInterface {
|
||||||
/**
|
/**
|
||||||
* @param string $circleUniqueId
|
* @param string $circleUniqueId
|
||||||
* @return array|null
|
* @return array|null
|
||||||
* @throws \OCP\AppFramework\QueryException
|
|
||||||
* @suppress PhanUndeclaredClassMethod
|
|
||||||
* @suppress PhanUndeclaredClassCatch
|
|
||||||
*/
|
*/
|
||||||
protected function circleToPrincipal($circleUniqueId) {
|
protected function circleToPrincipal($circleUniqueId) {
|
||||||
if (!$this->appManager->isEnabledForUser('circles') || !class_exists('\OCA\Circles\Api\v1\Circles')) {
|
if (!$this->appManager->isEnabledForUser('circles') || !class_exists('\OCA\Circles\Api\v1\Circles')) {
|
||||||
|
|
Loading…
Reference in New Issue