diff --git a/lib/Service/ShareService.php b/lib/Service/ShareService.php index a1b033d5b..85fdfe792 100644 --- a/lib/Service/ShareService.php +++ b/lib/Service/ShareService.php @@ -115,10 +115,10 @@ public function listNotInvited(int $pollId): array { /** * Get share by token for accessing the poll - * + * * @param string $token Token of share to get * @param bool $validateShareType Set true, if the share should be validated for usage - * @param bool $publicRequest Set true, to avoid preset displayname of public shares + * @param bool $publicRequest Set true, to avoid preset displayname of public shares */ public function get(string $token, bool $validateShareType = false, bool $publicRequest = false): Share { $this->share = $this->shareMapper->findByToken($token); @@ -130,7 +130,7 @@ public function get(string $token, bool $validateShareType = false, bool $public // deletes the displayname, to avoid displayname preset in case of public polls if ($this->share->getType() === Share::TYPE_PUBLIC && $publicRequest) { $this->share->setDisplayName(''); - } + } // Exception: logged in user accesses the poll via public share link if ($this->share->getType() === Share::TYPE_PUBLIC && $this->userSession->isLoggedIn()) {