@@ -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 | } |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | public const ICON = 'icon-mail'; |
| 32 | 32 | |
| 33 | 33 | /** @var Array */ |
| 34 | - private $contact =[]; |
|
| 34 | + private $contact = []; |
|
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | 37 | * Contact constructor. |
@@ -276,7 +276,7 @@ |
||
| 276 | 276 | return new Email($id); |
| 277 | 277 | break; |
| 278 | 278 | case self::TYPE_PUBLIC: |
| 279 | - return new GenericUser($id,self::TYPE_PUBLIC); |
|
| 279 | + return new GenericUser($id, self::TYPE_PUBLIC); |
|
| 280 | 280 | break; |
| 281 | 281 | case self::TYPE_EXTERNAL: |
| 282 | 282 | return new GenericUser($id, self::TYPE_EXTERNAL, $displayName, $emailAddress); |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | // via normal shared access and return the created share |
| 110 | 110 | return $this->create( |
| 111 | 111 | $this->share->getPollId(), |
| 112 | - UserGroupClass::getUserGroupChild( Share::TYPE_USER, \OC::$server->getUserSession()->getUser()->getUID()), |
|
| 112 | + UserGroupClass::getUserGroupChild(Share::TYPE_USER, \OC::$server->getUserSession()->getUser()->getUID()), |
|
| 113 | 113 | true |
| 114 | 114 | ); |
| 115 | 115 | } |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | $userGroup = UserGroupClass::getUserGroupChild($type, $userId); |
| 174 | - return $this->create($pollId, $userGroup) ; |
|
| 174 | + return $this->create($pollId, $userGroup); |
|
| 175 | 175 | |
| 176 | 176 | // $this->share = new Share(); |
| 177 | 177 | // $this->share->setPollId($pollId); |