@@ -353,7 +353,7 @@ |
||
| 353 | 353 | // ->where($queryFind->expr()->eq('poll_id', $pollId)) |
| 354 | 354 | // ->andWhere($queryFind->expr()->eq('poll_option', $text)); |
| 355 | 355 | ->where('poll_id = "' . $pollId . '"') |
| 356 | - ->andWhere('poll_option_text ="' . $text .'"'); |
|
| 356 | + ->andWhere('poll_option_text ="' . $text . '"'); |
|
| 357 | 357 | |
| 358 | 358 | $resultFind = $queryFind->execute(); |
| 359 | 359 | $row = $resultFind->fetch(); |
@@ -454,7 +454,7 @@ |
||
| 454 | 454 | foreach ($optionsArray as $optionElement) { |
| 455 | 455 | $option = new Options(); |
| 456 | 456 | $option->setPollId($pollId); |
| 457 | - $option->setPollOptionText(date('Y-m-d H:i:s', (int)$optionElement)); |
|
| 457 | + $option->setPollOptionText(date('Y-m-d H:i:s', (int) $optionElement)); |
|
| 458 | 458 | $this->optionsMapper->insert($option); |
| 459 | 459 | } |
| 460 | 460 | } else { |
@@ -74,12 +74,12 @@ |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | - * @NoAdminRequired |
|
| 78 | - * @NoCSRFRequired |
|
| 79 | - * @PublicPage |
|
| 80 | - * @param string $hash |
|
| 81 | - * @return JSONResponse |
|
| 82 | - */ |
|
| 77 | + * @NoAdminRequired |
|
| 78 | + * @NoCSRFRequired |
|
| 79 | + * @PublicPage |
|
| 80 | + * @param string $hash |
|
| 81 | + * @return JSONResponse |
|
| 82 | + */ |
|
| 83 | 83 | public function getPoll($hash) { |
| 84 | 84 | try { |
| 85 | 85 | $poll = $this->eventMapper->findByHash($hash); |
@@ -259,7 +259,7 @@ |
||
| 259 | 259 | } |
| 260 | 260 | } |
| 261 | 261 | |
| 262 | - return new JSONResponse( json_encode(array( |
|
| 262 | + return new JSONResponse(json_encode(array( |
|
| 263 | 263 | 'id' => $newEvent->getId(), |
| 264 | 264 | 'hash' => $newEvent->getHash() |
| 265 | 265 | ))); |