Skip to content

Commit

Permalink
Fix cs:check
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge committed Apr 24, 2024
1 parent db672f7 commit 2ea5422
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Controller/PublicController.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

/**
* Always use parent's classe response* methods to make sure, the token gets set correctly.
* Requesting the token inside the controller is not possible, because the token is submitted
* Requesting the token inside the controller is not possible, because the token is submitted
* as a paramter and not known while contruction time
* i.e. ACL requests are not valid before calling the response* method
* @psalm-api
Expand Down
4 changes: 2 additions & 2 deletions lib/Db/Poll.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@ public function getUserRole(): string {
if ($this->userMapper->getCurrentUser()->getId() === $this->getOwner()) {
return 'owner';
}
return $this->userRole;
return $this->userRole;
}

public function getVoteUrl(): string {
return $this->urlGenerator->linkToRouteAbsolute(
AppConstants::APP_ID . '.page.vote',
Expand Down

0 comments on commit 2ea5422

Please sign in to comment.