@@ -119,9 +119,9 @@ |
||
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | /** |
| 122 | - * @NoAdminRequired |
|
| 123 | - * @return string |
|
| 124 | - */ |
|
| 122 | + * @NoAdminRequired |
|
| 123 | + * @return string |
|
| 124 | + */ |
|
| 125 | 125 | public function getLoggedIn() { |
| 126 | 126 | return \OC::$server->getUserSession()->isLoggedIn(); |
| 127 | 127 | } |
@@ -123,7 +123,7 @@ |
||
| 123 | 123 | |
| 124 | 124 | foreach ($polls as $poll) { |
| 125 | 125 | $combinedPoll = (object) array_merge( |
| 126 | - (array) json_decode(json_encode($poll)), (array) json_decode(json_encode($this->acl->setPollId($poll->getId())))); |
|
| 126 | + (array) json_decode(json_encode($poll)), (array) json_decode(json_encode($this->acl->setPollId($poll->getId())))); |
|
| 127 | 127 | if ($combinedPoll->allowView) { |
| 128 | 128 | $pollList[] = $combinedPoll; |
| 129 | 129 | } |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | |
| 180 | - $this->logger->alert('ok '. json_encode($comment)); |
|
| 180 | + $this->logger->alert('ok ' . json_encode($comment)); |
|
| 181 | 181 | return new DataResponse($comment, Http::STATUS_OK); |
| 182 | 182 | |
| 183 | 183 | } |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | } |
| 225 | 225 | |
| 226 | 226 | try { |
| 227 | - if ( $comment['userId'] === $this->acl->getUserId() ) { |
|
| 227 | + if ($comment['userId'] === $this->acl->getUserId()) { |
|
| 228 | 228 | $comment = $this->mapper->find($comment['id']); |
| 229 | 229 | $comment = $this->mapper->delete($comment); |
| 230 | 230 | } |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | ->where( |
| 71 | 71 | $qb->expr()->eq('poll_id', $qb->createNamedParameter($pollId, IQueryBuilder::PARAM_INT)) |
| 72 | 72 | ) |
| 73 | - ->orderBy('order', 'ASC');; |
|
| 73 | + ->orderBy('order', 'ASC'); ; |
|
| 74 | 74 | |
| 75 | 75 | return $this->findEntities($qb); |
| 76 | 76 | } |