@@ -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 | |
@@ -58,8 +58,8 @@ |
||
| 58 | 58 | parent::__construct($appName, |
| 59 | 59 | $request, |
| 60 | 60 | 'POST, GET, DELETE', |
| 61 | - 'Authorization, Content-Type, Accept', |
|
| 62 | - 1728000); |
|
| 61 | + 'Authorization, Content-Type, Accept', |
|
| 62 | + 1728000); |
|
| 63 | 63 | $this->commentService = $commentService; |
| 64 | 64 | $this->urlGenerator = $urlGenerator; |
| 65 | 65 | } |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | use OCA\Polls\Service\LogService; |
| 40 | 40 | use OCA\Polls\Model\Acl; |
| 41 | 41 | |
| 42 | -class OptionService { |
|
| 42 | +class OptionService { |
|
| 43 | 43 | |
| 44 | 44 | private $userId; |
| 45 | 45 | private $optionMapper; |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | * @return array Array of Option objects |
| 120 | 120 | */ |
| 121 | 121 | public function list($pollId = 0, $token = '') { |
| 122 | - $this->logger->debug('call optionService->list(' . $pollId . ', '. $token . ')'); |
|
| 122 | + $this->logger->debug('call optionService->list(' . $pollId . ', ' . $token . ')'); |
|
| 123 | 123 | |
| 124 | 124 | if (!$this->acl->checkAuthorize($pollId, $token)) { |
| 125 | 125 | throw new NotAuthorizedException; |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | use OCA\Polls\Service\LogService; |
| 40 | 40 | use OCA\Polls\Model\Acl; |
| 41 | 41 | |
| 42 | -class OptionService { |
|
| 42 | +class OptionService { |
|
| 43 | 43 | |
| 44 | 44 | private $userId; |
| 45 | 45 | private $optionMapper; |
@@ -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; |
@@ -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 $userId; |
| 39 | 39 | private $acl; |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | // subscription already exists, just return the existing subscription |
| 100 | 100 | return $subscription; |
| 101 | 101 | } |
| 102 | - } catch (DoesNotExistException $e){ |
|
| 102 | + } catch (DoesNotExistException $e) { |
|
| 103 | 103 | if ($subscribed) { |
| 104 | 104 | $subscription = new Subscription(); |
| 105 | 105 | $subscription->setPollId($pollId); |
@@ -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 $userId; |
| 39 | 39 | private $acl; |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | // subscription already exists, just return the existing subscription |
| 100 | 100 | return $subscription; |
| 101 | 101 | } |
| 102 | - } catch (DoesNotExistException $e){ |
|
| 102 | + } catch (DoesNotExistException $e) { |
|
| 103 | 103 | if ($subscribed) { |
| 104 | 104 | $subscription = new Subscription(); |
| 105 | 105 | $subscription->setPollId($pollId); |
@@ -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']) { |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | use OCA\Polls\Service\LogService; |
| 38 | 38 | use OCA\Polls\Model\Acl; |
| 39 | 39 | |
| 40 | -class VoteService { |
|
| 40 | +class VoteService { |
|
| 41 | 41 | |
| 42 | 42 | private $userId; |
| 43 | 43 | private $logger; |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | use OCA\Polls\Service\LogService; |
| 38 | 38 | use OCA\Polls\Model\Acl; |
| 39 | 39 | |
| 40 | -class VoteService { |
|
| 40 | +class VoteService { |
|
| 41 | 41 | |
| 42 | 42 | private $userId; |
| 43 | 43 | private $logger; |
@@ -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 | } |