@@ -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 { |
@@ -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 | ))); |