@@ -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 [ |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | */ |
239 | 239 | public function getGroupShare(): bool { |
240 | 240 | return count( |
241 | - array_filter($this->shareMapper->findByPoll($this->getPollId()), function ($item) { |
|
241 | + array_filter($this->shareMapper->findByPoll($this->getPollId()), function($item) { |
|
242 | 242 | if ($item->getType() === Share::TYPE_GROUP && $this->groupManager->isInGroup($this->getUserId(), $item->getUserId())) { |
243 | 243 | return true; |
244 | 244 | } |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | */ |
263 | 263 | public function getPersonalShare(): bool { |
264 | 264 | return count( |
265 | - array_filter($this->shareMapper->findByPoll($this->getPollId()), function ($item) { |
|
265 | + array_filter($this->shareMapper->findByPoll($this->getPollId()), function($item) { |
|
266 | 266 | if ( |
267 | 267 | ($item->getType() === Share::TYPE_USER |
268 | 268 | || $item->getType() === Share::TYPE_EXTERNAL |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | */ |
284 | 284 | public function getPublicShare(): bool { |
285 | 285 | return count( |
286 | - array_filter($this->shareMapper->findByPoll($this->getPollId()), function ($item) { |
|
286 | + array_filter($this->shareMapper->findByPoll($this->getPollId()), function($item) { |
|
287 | 287 | if ($item->getType() === Share::TYPE_PUBLIC && $item->getToken() === $this->getToken()) { |
288 | 288 | return true; |
289 | 289 | } |