@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | */ |
241 | 241 | public function getGroupShare(): bool { |
242 | 242 | return count( |
243 | - array_filter($this->shareMapper->findByPoll($this->getPollId()), function ($item) { |
|
243 | + array_filter($this->shareMapper->findByPoll($this->getPollId()), function($item) { |
|
244 | 244 | if ($item->getType() === 'group' && $this->groupManager->isInGroup($this->getUserId(), $item->getUserId())) { |
245 | 245 | return true; |
246 | 246 | } |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | */ |
265 | 265 | public function getPersonalShare(): bool { |
266 | 266 | return count( |
267 | - array_filter($this->shareMapper->findByPoll($this->getPollId()), function ($item) { |
|
267 | + array_filter($this->shareMapper->findByPoll($this->getPollId()), function($item) { |
|
268 | 268 | if (($item->getType() === 'user' || $item->getType() === 'external' || $item->getType() === 'email' || $item->getType() === 'contact') && $item->getUserId() === $this->getUserId()) { |
269 | 269 | return true; |
270 | 270 | } |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | */ |
279 | 279 | public function getPublicShare(): bool { |
280 | 280 | return count( |
281 | - array_filter($this->shareMapper->findByPoll($this->getPollId()), function ($item) { |
|
281 | + array_filter($this->shareMapper->findByPoll($this->getPollId()), function($item) { |
|
282 | 282 | if ($item->getType() === 'public' && $item->getToken() === $this->getToken()) { |
283 | 283 | return true; |
284 | 284 | } |
@@ -40,7 +40,7 @@ |
||
40 | 40 | */ |
41 | 41 | public function registerNavigationEntry() { |
42 | 42 | $container = $this->getContainer(); |
43 | - $container->query('OCP\INavigationManager')->add(function () use ($container) { |
|
43 | + $container->query('OCP\INavigationManager')->add(function() use ($container) { |
|
44 | 44 | $urlGenerator = $container->query('OCP\IURLGenerator'); |
45 | 45 | $l10n = $container->query('OCP\IL10N'); |
46 | 46 | return [ |