@@ -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 | |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | * @return Array |
| 91 | 91 | */ |
| 92 | 92 | public function get($pollId = 0, $token = '') { |
| 93 | - $this->logger->debug('call commentService->get(' . $pollId . ', '. $token . ')'); |
|
| 93 | + $this->logger->debug('call commentService->get(' . $pollId . ', ' . $token . ')'); |
|
| 94 | 94 | |
| 95 | 95 | if (!$this->acl->checkAuthorize($pollId, $token)) { |
| 96 | 96 | $this->logger->debug('Acl UserId ' . $this->acl->getUserId()); |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | * @return Comment |
| 119 | 119 | */ |
| 120 | 120 | public function add($message, $pollId = 0, $token = '') { |
| 121 | - $this->logger->debug('call commentService->write("' . $message . '", ' .$pollId . ', "' .$token . '")'); |
|
| 121 | + $this->logger->debug('call commentService->write("' . $message . '", ' . $pollId . ', "' . $token . '")'); |
|
| 122 | 122 | |
| 123 | 123 | if (!$this->acl->checkAuthorize($pollId, $token)) { |
| 124 | 124 | throw new NotAuthorizedException; |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | } catch (\Exception $e) { |
| 141 | - $this->logger->alert('Error writing comment for pollId ' . $pollId . ': '. $e); |
|
| 141 | + $this->logger->alert('Error writing comment for pollId ' . $pollId . ': ' . $e); |
|
| 142 | 142 | throw new NotAuthorizedException($e); |
| 143 | 143 | } |
| 144 | 144 | } |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | * @return Comment |
| 153 | 153 | */ |
| 154 | 154 | public function delete($commentId, $token = '') { |
| 155 | - $this->logger->debug('call commentService->delete(' . $commentId . ', "' .$token . '")'); |
|
| 155 | + $this->logger->debug('call commentService->delete(' . $commentId . ', "' . $token . '")'); |
|
| 156 | 156 | |
| 157 | 157 | $this->comment = $this->commentMapper->find($commentId); |
| 158 | 158 | if (!$this->acl->checkAuthorize($this->comment->getPollId(), $token) || $this->comment->getUserId() !== $this->acl->getUserId()) { |