@@ -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; |
@@ -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 | } |
@@ -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); |