@@ -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 | }, |
@@ -81,12 +81,12 @@ |
||
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | /** |
| 84 | - * @NoAdminRequired |
|
| 85 | - * @NoCSRFRequired |
|
| 86 | - * @PublicPage |
|
| 87 | - * @param string $hash |
|
| 88 | - * @return DataResponse |
|
| 89 | - */ |
|
| 84 | + * @NoAdminRequired |
|
| 85 | + * @NoCSRFRequired |
|
| 86 | + * @PublicPage |
|
| 87 | + * @param string $hash |
|
| 88 | + * @return DataResponse |
|
| 89 | + */ |
|
| 90 | 90 | public function getPoll($hash) { |
| 91 | 91 | if (!\OC::$server->getUserSession()->getUser() instanceof IUser) { |
| 92 | 92 | return new DataResponse(null, Http::STATUS_UNAUTHORIZED); |