@@ -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; |
@@ -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']) { |
@@ -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 | } |
@@ -56,8 +56,8 @@ discard block |
||
| 56 | 56 | parent::__construct($appName, |
| 57 | 57 | $request, |
| 58 | 58 | 'POST, PUT, GET, DELETE', |
| 59 | - 'Authorization, Content-Type, Accept', |
|
| 60 | - 1728000); |
|
| 59 | + 'Authorization, Content-Type, Accept', |
|
| 60 | + 1728000); |
|
| 61 | 61 | $this->shareService = $shareService; |
| 62 | 62 | } |
| 63 | 63 | |
@@ -81,14 +81,14 @@ discard block |
||
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | /** |
| 84 | - * get share by token |
|
| 85 | - * Get pollId by token |
|
| 86 | - * @NoAdminRequired |
|
| 87 | - * @NoCSRFRequired |
|
| 88 | - * @CORS |
|
| 89 | - * @param string $token |
|
| 90 | - * @return DataResponse |
|
| 91 | - */ |
|
| 84 | + * get share by token |
|
| 85 | + * Get pollId by token |
|
| 86 | + * @NoAdminRequired |
|
| 87 | + * @NoCSRFRequired |
|
| 88 | + * @CORS |
|
| 89 | + * @param string $token |
|
| 90 | + * @return DataResponse |
|
| 91 | + */ |
|
| 92 | 92 | public function get($token) { |
| 93 | 93 | try { |
| 94 | 94 | return new DataResponse($this->shareService->get($token), Http::STATUS_OK); |
@@ -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; |