diff options
Diffstat (limited to 'lib/Controller/CommentApiController.php')
-rw-r--r-- | lib/Controller/CommentApiController.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/Controller/CommentApiController.php b/lib/Controller/CommentApiController.php index 6cc56bba..16d3b66a 100644 --- a/lib/Controller/CommentApiController.php +++ b/lib/Controller/CommentApiController.php @@ -25,24 +25,25 @@ namespace OCA\Polls\Controller; use Exception; use OCP\AppFramework\Db\DoesNotExistException; +use OCA\Polls\Exceptions\NotAuthorizedException; use OCP\IRequest; -use \OCP\IURLGenerator; +use OCP\IURLGenerator; use OCP\AppFramework\ApiController; use OCP\AppFramework\Http; use OCP\AppFramework\Http\DataResponse; -use OCA\Polls\Exceptions\NotAuthorizedException; - use OCA\Polls\Service\CommentService; class CommentApiController extends ApiController { + /** @var CommentService */ private $commentService; + /** - * CommentApiController constructor. + * CommentApiController constructor * @param string $appName * @param IRequest $request * @param CommentService $commentService @@ -62,12 +63,11 @@ class CommentApiController extends ApiController { } /** - * get * Read all comments of a poll based on the poll id and return list as array * @NoAdminRequired * @CORS * @NoCSRFRequired - * @param integer $pollId + * @param int $pollId * @return DataResponse */ public function list($pollId) { @@ -81,7 +81,7 @@ class CommentApiController extends ApiController { } /** - * Write a new comment to the db and returns the new comment as array + * Add comment * @NoAdminRequired * @CORS * @NoCSRFRequired @@ -100,7 +100,7 @@ class CommentApiController extends ApiController { } /** - * Delete Comment + * Delete comment * @NoAdminRequired * @CORS * @NoCSRFRequired |