@@ -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 | |
@@ -58,8 +58,8 @@ |
||
| 58 | 58 | parent::__construct($appName, |
| 59 | 59 | $request, |
| 60 | 60 | 'POST, GET, DELETE', |
| 61 | - 'Authorization, Content-Type, Accept', |
|
| 62 | - 1728000); |
|
| 61 | + 'Authorization, Content-Type, Accept', |
|
| 62 | + 1728000); |
|
| 63 | 63 | $this->commentService = $commentService; |
| 64 | 64 | $this->urlGenerator = $urlGenerator; |
| 65 | 65 | } |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | * @return Array |
| 90 | 90 | */ |
| 91 | 91 | public function list($pollId = 0, $token = '') { |
| 92 | - $this->logger->debug('call commentService->get(' . $pollId . ', '. $token . ')'); |
|
| 92 | + $this->logger->debug('call commentService->get(' . $pollId . ', ' . $token . ')'); |
|
| 93 | 93 | |
| 94 | 94 | if (!$this->acl->checkAuthorize($pollId, $token)) { |
| 95 | 95 | throw new NotAuthorizedException; |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | * @return Comment |
| 115 | 115 | */ |
| 116 | 116 | public function add($message, $pollId = 0, $token = '') { |
| 117 | - $this->logger->debug('call commentService->write("' . $message . '", ' .$pollId . ', "' .$token . '")'); |
|
| 117 | + $this->logger->debug('call commentService->write("' . $message . '", ' . $pollId . ', "' . $token . '")'); |
|
| 118 | 118 | |
| 119 | 119 | if (!$this->acl->checkAuthorize($pollId, $token)) { |
| 120 | 120 | throw new NotAuthorizedException; |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | } |
| 135 | 135 | |
| 136 | 136 | } catch (\Exception $e) { |
| 137 | - $this->logger->alert('Error writing comment for pollId ' . $pollId . ': '. $e); |
|
| 137 | + $this->logger->alert('Error writing comment for pollId ' . $pollId . ': ' . $e); |
|
| 138 | 138 | throw new NotAuthorizedException($e); |
| 139 | 139 | } |
| 140 | 140 | } |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | */ |
| 150 | 150 | public function delete($commentId, $token = '') { |
| 151 | 151 | |
| 152 | - $this->logger->debug('call commentService->delete(' . $commentId . ', "' .$token . '")'); |
|
| 152 | + $this->logger->debug('call commentService->delete(' . $commentId . ', "' . $token . '")'); |
|
| 153 | 153 | $this->comment = $this->commentMapper->find($commentId); |
| 154 | 154 | if (!$this->acl->checkAuthorize($this->comment->getPollId(), $token) || $this->comment->getUserId() !== $this->acl->getUserId()) { |
| 155 | 155 | throw new NotAuthorizedException; |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | use OCA\Polls\Service\LogService; |
| 40 | 40 | use OCA\Polls\Model\Acl; |
| 41 | 41 | |
| 42 | -class OptionService { |
|
| 42 | +class OptionService { |
|
| 43 | 43 | |
| 44 | 44 | private $userId; |
| 45 | 45 | private $optionMapper; |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | * @return array Array of Option objects |
| 120 | 120 | */ |
| 121 | 121 | public function list($pollId = 0, $token = '') { |
| 122 | - $this->logger->debug('call optionService->list(' . $pollId . ', '. $token . ')'); |
|
| 122 | + $this->logger->debug('call optionService->list(' . $pollId . ', ' . $token . ')'); |
|
| 123 | 123 | |
| 124 | 124 | if (!$this->acl->checkAuthorize($pollId, $token)) { |
| 125 | 125 | throw new NotAuthorizedException; |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | use OCA\Polls\Service\LogService; |
| 40 | 40 | use OCA\Polls\Model\Acl; |
| 41 | 41 | |
| 42 | -class OptionService { |
|
| 42 | +class OptionService { |
|
| 43 | 43 | |
| 44 | 44 | private $userId; |
| 45 | 45 | private $optionMapper; |