@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | $this->eventMapper->update($newEvent); |
| 232 | 232 | $this->optionsMapper->deleteByPoll($newEvent->getId()); |
| 233 | 233 | |
| 234 | - } else if ($mode === 'create'){ |
|
| 234 | + } else if ($mode === 'create') { |
|
| 235 | 235 | $newEvent = $this->eventMapper->insert($newEvent); |
| 236 | 236 | /* $ins = $this->eventMapper->insert($newEvent); |
| 237 | 237 | $newEvent->setId($ins->getId()); |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | $newOption = new Options(); |
| 243 | 243 | |
| 244 | 244 | $newOption->setPollId($newEvent->getId()); |
| 245 | - $newOption->setPollOptionText(date('Y-m-d H:i:s', $optionElement['fromTimestamp'] /1000)); |
|
| 245 | + $newOption->setPollOptionText(date('Y-m-d H:i:s', $optionElement['fromTimestamp'] / 1000)); |
|
| 246 | 246 | |
| 247 | 247 | $this->optionsMapper->insert($newOption); |
| 248 | 248 | } |
@@ -257,6 +257,6 @@ discard block |
||
| 257 | 257 | } |
| 258 | 258 | } |
| 259 | 259 | |
| 260 | - return new JSONResponse(json_encode($options.pollTexts)); |
|
| 260 | + return new JSONResponse(json_encode($options . pollTexts)); |
|
| 261 | 261 | } |
| 262 | 262 | } |
@@ -231,7 +231,7 @@ |
||
| 231 | 231 | $this->eventMapper->update($newEvent); |
| 232 | 232 | $this->optionsMapper->deleteByPoll($newEvent->getId()); |
| 233 | 233 | |
| 234 | - } else if ($mode === 'create'){ |
|
| 234 | + } else if ($mode === 'create') { |
|
| 235 | 235 | $newEvent = $this->eventMapper->insert($newEvent); |
| 236 | 236 | /* $ins = $this->eventMapper->insert($newEvent); |
| 237 | 237 | $newEvent->setId($ins->getId()); |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | $expiration = true; |
| 134 | 134 | $expire = $poll->getExpire(); |
| 135 | 135 | } |
| 136 | - If ($poll->getOwner() !== $this->userId) { |
|
| 136 | + if ($poll->getOwner() !== $this->userId) { |
|
| 137 | 137 | $mode = 'create'; |
| 138 | 138 | } else { |
| 139 | 139 | $mode = 'edit'; |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | |
| 179 | 179 | $newEvent = new Event(); |
| 180 | 180 | |
| 181 | - If ($mode === 'edit') { |
|
| 181 | + if ($mode === 'edit') { |
|
| 182 | 182 | // Existing poll shall be edited |
| 183 | 183 | $oldPoll = $this->eventMapper->findByHash($event['hash']); |
| 184 | 184 | |