@@ -223,7 +223,7 @@ |
||
| 223 | 223 | $groupMembers = array_keys($this->groupManager->displayNamesInGroup($share->getUserId())); |
| 224 | 224 | |
| 225 | 225 | foreach ($groupMembers as $member) { |
| 226 | - if ($skipUser === $member || !$this->userManager->get($member)->isEnabled() ) { |
|
| 226 | + if ($skipUser === $member || !$this->userManager->get($member)->isEnabled()) { |
|
| 227 | 227 | continue; |
| 228 | 228 | } |
| 229 | 229 | |
@@ -53,8 +53,8 @@ |
||
| 53 | 53 | parent::__construct($appName, |
| 54 | 54 | $request, |
| 55 | 55 | 'POST, GET, DELETE', |
| 56 | - 'Authorization, Content-Type, Accept', |
|
| 57 | - 1728000); |
|
| 56 | + 'Authorization, Content-Type, Accept', |
|
| 57 | + 1728000); |
|
| 58 | 58 | $this->commentService = $commentService; |
| 59 | 59 | } |
| 60 | 60 | |
@@ -55,8 +55,8 @@ |
||
| 55 | 55 | parent::__construct($appName, |
| 56 | 56 | $request, |
| 57 | 57 | 'POST, PUT, GET, DELETE', |
| 58 | - 'Authorization, Content-Type, Accept', |
|
| 59 | - 1728000); |
|
| 58 | + 'Authorization, Content-Type, Accept', |
|
| 59 | + 1728000); |
|
| 60 | 60 | $this->optionService = $optionService; |
| 61 | 61 | } |
| 62 | 62 | |
@@ -61,8 +61,8 @@ |
||
| 61 | 61 | parent::__construct($appName, |
| 62 | 62 | $request, |
| 63 | 63 | 'PUT, GET, DELETE', |
| 64 | - 'Authorization, Content-Type, Accept', |
|
| 65 | - 1728000); |
|
| 64 | + 'Authorization, Content-Type, Accept', |
|
| 65 | + 1728000); |
|
| 66 | 66 | $this->userId = $userId; |
| 67 | 67 | $this->subscriptionService = $subscriptionService; |
| 68 | 68 | $this->logger = $logger; |
@@ -337,7 +337,7 @@ |
||
| 337 | 337 | } |
| 338 | 338 | |
| 339 | 339 | if (isset($poll['access']) && !in_array($poll['access'], $this->getValidAccess())) { |
| 340 | - throw new InvalidAccessException('Invalid value for prop access '. $poll['access']); |
|
| 340 | + throw new InvalidAccessException('Invalid value for prop access ' . $poll['access']); |
|
| 341 | 341 | } |
| 342 | 342 | |
| 343 | 343 | if (isset($poll['title']) && !$poll['title']) { |
@@ -44,7 +44,6 @@ |
||
| 44 | 44 | * @param IRequest $request |
| 45 | 45 | * @param ILogger $logger |
| 46 | 46 | * @param VoteService $voteService |
| 47 | - |
|
| 48 | 47 | */ |
| 49 | 48 | public function __construct( |
| 50 | 49 | string $appName, |
@@ -55,8 +55,8 @@ |
||
| 55 | 55 | parent::__construct($appName, |
| 56 | 56 | $request, |
| 57 | 57 | 'PUT, GET, DELETE', |
| 58 | - 'Authorization, Content-Type, Accept', |
|
| 59 | - 1728000); |
|
| 58 | + 'Authorization, Content-Type, Accept', |
|
| 59 | + 1728000); |
|
| 60 | 60 | $this->voteService = $voteService; |
| 61 | 61 | $this->logger = $logger; |
| 62 | 62 | } |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | use OCA\Polls\Service\LogService; |
| 34 | 34 | use OCA\Polls\Model\Acl; |
| 35 | 35 | |
| 36 | -class VoteService { |
|
| 36 | +class VoteService { |
|
| 37 | 37 | |
| 38 | 38 | private $voteMapper; |
| 39 | 39 | private $vote; |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | use OCA\Polls\Service\LogService; |
| 34 | 34 | use OCA\Polls\Model\Acl; |
| 35 | 35 | |
| 36 | -class VoteService { |
|
| 36 | +class VoteService { |
|
| 37 | 37 | |
| 38 | 38 | private $voteMapper; |
| 39 | 39 | private $vote; |
@@ -114,7 +114,7 @@ |
||
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | } catch (\Exception $e) { |
| 117 | - $this->logger->alert('Error writing comment for pollId ' . $pollId . ': '. $e); |
|
| 117 | + $this->logger->alert('Error writing comment for pollId ' . $pollId . ': ' . $e); |
|
| 118 | 118 | throw new NotAuthorizedException($e); |
| 119 | 119 | } |
| 120 | 120 | |