@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | public function getGroupShare(): bool { |
| 175 | 175 | return count( |
| 176 | 176 | array_filter($this->shareMapper->findByPoll($this->getPollId()), function($item) { |
| 177 | - if ($item->getType() === 'group' && $this->groupManager->isInGroup($this->getUserId(),$item->getUserId())) { |
|
| 177 | + if ($item->getType() === 'group' && $this->groupManager->isInGroup($this->getUserId(), $item->getUserId())) { |
|
| 178 | 178 | return true; |
| 179 | 179 | } |
| 180 | 180 | }) |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | * @return bool |
| 234 | 234 | */ |
| 235 | 235 | public function getAllowSeeUsernames(): bool { |
| 236 | - return !(($this->event->getIsAnonymous() && !$this->getIsOwner()) || $this->event->getFullAnonymous());; |
|
| 236 | + return !(($this->event->getIsAnonymous() && !$this->getIsOwner()) || $this->event->getFullAnonymous()); ; |
|
| 237 | 237 | } |
| 238 | 238 | |
| 239 | 239 | /** |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | $this->foundByToken = true; |
| 278 | 278 | $this->setPollId($share->getPollId()); |
| 279 | 279 | |
| 280 | - if (($share->getType() === 'group' || $share->getType() === 'user') && !\OC::$server->getUserSession()->isLoggedIn()) { |
|
| 280 | + if (($share->getType() === 'group' || $share->getType() === 'user') && !\OC::$server->getUserSession()->isLoggedIn()) { |
|
| 281 | 281 | // User must be logged in for shareType user and group |
| 282 | 282 | $this->setPollId(0); |
| 283 | 283 | $this->setUserId(null); |
@@ -289,7 +289,7 @@ |
||
| 289 | 289 | $emailTemplate->addBodyText(str_replace( |
| 290 | 290 | ['{user}', '{title}'], |
| 291 | 291 | [$sender, $event->getTitle()], |
| 292 | - $trans->t('{user} invited you to take part in the poll "{title}"' ) |
|
| 292 | + $trans->t('{user} invited you to take part in the poll "{title}"') |
|
| 293 | 293 | )); |
| 294 | 294 | |
| 295 | 295 | $emailTemplate->addBodyButton( |