@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | $fm->define('OCA\Polls\Db\Comment')->setDefinitions([ |
30 | 30 | 'userId' => Faker::firstNameMale(), |
31 | - 'dt' => function () { |
|
31 | + 'dt' => function() { |
|
32 | 32 | $date = new DateTime('today'); |
33 | 33 | return $date->format('Y-m-d H:i:s'); |
34 | 34 | }, |
@@ -31,12 +31,12 @@ |
||
31 | 31 | 'title' => Faker::sentence(10), |
32 | 32 | 'description' => Faker::text(255), |
33 | 33 | 'owner' => Faker::firstNameMale(), |
34 | - 'created' => function () { |
|
34 | + 'created' => function() { |
|
35 | 35 | $date = new DateTime('today'); |
36 | 36 | return $date->format('Y-m-d H:i:s'); |
37 | 37 | }, |
38 | 38 | 'access' => 'registered', |
39 | - 'expire' => function () { |
|
39 | + 'expire' => function() { |
|
40 | 40 | $date = new DateTime('tomorrow'); |
41 | 41 | return $date->format('Y-m-d H:i:s'); |
42 | 42 | }, |
@@ -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(); |
@@ -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); |