@@ -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(); |
@@ -60,12 +60,12 @@ |
||
| 60 | 60 | * @param IRequest $request |
| 61 | 61 | * @param ILogger $logger |
| 62 | 62 | * @param PollService $pollService |
| 63 | - * @param CommentService $commentService |
|
| 64 | - * @param OptionService $optionService |
|
| 65 | - * @param ShareService $shareService |
|
| 66 | - * @param VoteService $voteService |
|
| 67 | - * @param Acl $acl |
|
| 68 | - */ |
|
| 63 | + * @param CommentService $commentService |
|
| 64 | + * @param OptionService $optionService |
|
| 65 | + * @param ShareService $shareService |
|
| 66 | + * @param VoteService $voteService |
|
| 67 | + * @param Acl $acl |
|
| 68 | + */ |
|
| 69 | 69 | |
| 70 | 70 | public function __construct( |
| 71 | 71 | string $appName, |
@@ -59,8 +59,8 @@ discard block |
||
| 59 | 59 | parent::__construct($appName, |
| 60 | 60 | $request, |
| 61 | 61 | 'POST, PUT, GET, DELETE', |
| 62 | - 'Authorization, Content-Type, Accept', |
|
| 63 | - 1728000); |
|
| 62 | + 'Authorization, Content-Type, Accept', |
|
| 63 | + 1728000); |
|
| 64 | 64 | $this->shareService = $shareService; |
| 65 | 65 | $this->mailService = $mailService; |
| 66 | 66 | } |
@@ -85,14 +85,14 @@ discard block |
||
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | /** |
| 88 | - * get share by token |
|
| 89 | - * Get pollId by token |
|
| 90 | - * @NoAdminRequired |
|
| 91 | - * @NoCSRFRequired |
|
| 92 | - * @CORS |
|
| 93 | - * @param string $token |
|
| 94 | - * @return DataResponse |
|
| 95 | - */ |
|
| 88 | + * get share by token |
|
| 89 | + * Get pollId by token |
|
| 90 | + * @NoAdminRequired |
|
| 91 | + * @NoCSRFRequired |
|
| 92 | + * @CORS |
|
| 93 | + * @param string $token |
|
| 94 | + * @return DataResponse |
|
| 95 | + */ |
|
| 96 | 96 | public function get($token) { |
| 97 | 97 | try { |
| 98 | 98 | return new DataResponse(['share' => $this->shareService->get($token)], Http::STATUS_OK); |