diff options
Diffstat (limited to 'apps/settings/lib/Service/AuthorizedGroupService.php')
-rw-r--r-- | apps/settings/lib/Service/AuthorizedGroupService.php | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/apps/settings/lib/Service/AuthorizedGroupService.php b/apps/settings/lib/Service/AuthorizedGroupService.php index 9dea37b0c2e..15aca94198a 100644 --- a/apps/settings/lib/Service/AuthorizedGroupService.php +++ b/apps/settings/lib/Service/AuthorizedGroupService.php @@ -16,11 +16,9 @@ use OCP\IGroup; class AuthorizedGroupService { - /** @var AuthorizedGroupMapper $mapper */ - private $mapper; - - public function __construct(AuthorizedGroupMapper $mapper) { - $this->mapper = $mapper; + public function __construct( + private AuthorizedGroupMapper $mapper, + ) { } /** @@ -44,9 +42,9 @@ class AuthorizedGroupService { * @throws NotFoundException */ private function handleException(\Exception $e): void { - if ($e instanceof DoesNotExistException || - $e instanceof MultipleObjectsReturnedException) { - throw new NotFoundException("AuthorizedGroup not found"); + if ($e instanceof DoesNotExistException + || $e instanceof MultipleObjectsReturnedException) { + throw new NotFoundException('AuthorizedGroup not found'); } else { throw $e; } |