@@ -88,7 +88,7 @@ |
||
| 88 | 88 | * @return Array |
| 89 | 89 | */ |
| 90 | 90 | public function getCalendars() { |
| 91 | - $calendars = []; |
|
| 91 | + $calendars = []; |
|
| 92 | 92 | foreach ($this->calendars as $calendar) { |
| 93 | 93 | $calendars[] = [ |
| 94 | 94 | 'name' => $calendar->getDisplayName(), |
@@ -31,15 +31,15 @@ |
||
| 31 | 31 | 'title' => Faker::text(124), |
| 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->getTimestamp(); |
| 37 | 37 | }, |
| 38 | - 'expire' => function() { |
|
| 38 | + 'expire' => function () { |
|
| 39 | 39 | $date = new DateTime('tomorrow'); |
| 40 | 40 | return $date->getTimestamp(); |
| 41 | 41 | }, |
| 42 | - 'deleted' => function() { |
|
| 42 | + 'deleted' => function () { |
|
| 43 | 43 | $date = new DateTime('+1 month'); |
| 44 | 44 | return $date->getTimestamp(); |
| 45 | 45 | }, |
@@ -28,11 +28,11 @@ |
||
| 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 | }, |
| 35 | - 'timestamp' => function() { |
|
| 35 | + 'timestamp' => function () { |
|
| 36 | 36 | $date = new DateTime('today'); |
| 37 | 37 | return $date->getTimestamp(); |
| 38 | 38 | }, |