@@ -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 | |
@@ -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']) { |
@@ -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 | |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | use OCA\Polls\Service\LogService; |
| 32 | 32 | use OCA\Polls\Model\Acl; |
| 33 | 33 | |
| 34 | -class OptionService { |
|
| 34 | +class OptionService { |
|
| 35 | 35 | |
| 36 | 36 | private $optionMapper; |
| 37 | 37 | private $option; |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | use OCA\Polls\Service\LogService; |
| 32 | 32 | use OCA\Polls\Model\Acl; |
| 33 | 33 | |
| 34 | -class OptionService { |
|
| 34 | +class OptionService { |
|
| 35 | 35 | |
| 36 | 36 | private $optionMapper; |
| 37 | 37 | private $option; |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | use OCA\Polls\Db\SubscriptionMapper; |
| 34 | 34 | use OCA\Polls\Model\Acl; |
| 35 | 35 | |
| 36 | -class SubscriptionService { |
|
| 36 | +class SubscriptionService { |
|
| 37 | 37 | |
| 38 | 38 | private $acl; |
| 39 | 39 | private $subscriptionMapper; |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | return ['status' => 'Subscribed to poll ' . $pollId]; |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | - } catch (DoesNotExistException $e){ |
|
| 97 | + } catch (DoesNotExistException $e) { |
|
| 98 | 98 | |
| 99 | 99 | if ($subscribed) { |
| 100 | 100 | $subscription = new Subscription(); |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | use OCA\Polls\Db\SubscriptionMapper; |
| 34 | 34 | use OCA\Polls\Model\Acl; |
| 35 | 35 | |
| 36 | -class SubscriptionService { |
|
| 36 | +class SubscriptionService { |
|
| 37 | 37 | |
| 38 | 38 | private $acl; |
| 39 | 39 | private $subscriptionMapper; |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | return ['status' => 'Subscribed to poll ' . $pollId]; |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | - } catch (DoesNotExistException $e){ |
|
| 97 | + } catch (DoesNotExistException $e) { |
|
| 98 | 98 | |
| 99 | 99 | if ($subscribed) { |
| 100 | 100 | $subscription = new Subscription(); |