@@ -34,8 +34,8 @@ |
||
34 | 34 | * @method void setPollId(integer $value) |
35 | 35 | */ |
36 | 36 | class Comment extends Model { |
37 | - protected $userId; |
|
38 | - protected $dt; |
|
39 | - protected $comment; |
|
40 | - protected $pollId; |
|
37 | + protected $userId; |
|
38 | + protected $dt; |
|
39 | + protected $comment; |
|
40 | + protected $pollId; |
|
41 | 41 | } |
@@ -30,6 +30,6 @@ |
||
30 | 30 | * @method void setPollId(integer $value) |
31 | 31 | */ |
32 | 32 | class Date extends Model { |
33 | - protected $dt; |
|
34 | - protected $pollId; |
|
33 | + protected $dt; |
|
34 | + protected $pollId; |
|
35 | 35 | } |
@@ -46,14 +46,14 @@ |
||
46 | 46 | * @method void setFullAnonymous(integer $value) |
47 | 47 | */ |
48 | 48 | class Event extends Model { |
49 | - protected $type; |
|
50 | - protected $title; |
|
51 | - protected $description; |
|
52 | - protected $owner; |
|
53 | - protected $created; |
|
54 | - protected $access; |
|
55 | - protected $expire; |
|
56 | - protected $hash; |
|
57 | - protected $isAnonymous; |
|
58 | - protected $fullAnonymous; |
|
49 | + protected $type; |
|
50 | + protected $title; |
|
51 | + protected $description; |
|
52 | + protected $owner; |
|
53 | + protected $created; |
|
54 | + protected $access; |
|
55 | + protected $expire; |
|
56 | + protected $hash; |
|
57 | + protected $isAnonymous; |
|
58 | + protected $fullAnonymous; |
|
59 | 59 | } |
@@ -34,8 +34,8 @@ |
||
34 | 34 | * @method void setType(integer $value) |
35 | 35 | */ |
36 | 36 | class Participation extends Model { |
37 | - protected $dt; |
|
38 | - protected $userId; |
|
39 | - protected $pollId; |
|
40 | - protected $type; |
|
37 | + protected $dt; |
|
38 | + protected $userId; |
|
39 | + protected $pollId; |
|
40 | + protected $type; |
|
41 | 41 | } |
@@ -30,6 +30,6 @@ |
||
30 | 30 | * @method void setPollId(integer $value) |
31 | 31 | */ |
32 | 32 | class Text extends Model { |
33 | - protected $text; |
|
34 | - protected $pollId; |
|
33 | + protected $text; |
|
34 | + protected $pollId; |
|
35 | 35 | } |
@@ -34,8 +34,8 @@ |
||
34 | 34 | * @method void setType(integer $value) |
35 | 35 | */ |
36 | 36 | class ParticipationText extends Model { |
37 | - protected $text; |
|
38 | - protected $userId; |
|
39 | - protected $pollId; |
|
40 | - protected $type; |
|
37 | + protected $text; |
|
38 | + protected $userId; |
|
39 | + protected $pollId; |
|
40 | + protected $type; |
|
41 | 41 | } |
@@ -30,6 +30,6 @@ |
||
30 | 30 | * @method void setPollId(string $value) |
31 | 31 | */ |
32 | 32 | class Notification extends Model { |
33 | - protected $userId; |
|
34 | - protected $pollId; |
|
33 | + protected $userId; |
|
34 | + protected $pollId; |
|
35 | 35 | } |
@@ -27,10 +27,10 @@ |
||
27 | 27 | * General factory for the comment model. |
28 | 28 | */ |
29 | 29 | $fm->define('OCA\Polls\Db\Comment')->setDefinitions([ |
30 | - 'userId' => Faker::firstNameMale(), |
|
31 | - 'dt' => function () { |
|
32 | - $date = new DateTime('today'); |
|
33 | - return $date->format('Y-m-d H:i:s'); |
|
34 | - }, |
|
35 | - 'comment' => Faker::paragraph() |
|
30 | + 'userId' => Faker::firstNameMale(), |
|
31 | + 'dt' => function () { |
|
32 | + $date = new DateTime('today'); |
|
33 | + return $date->format('Y-m-d H:i:s'); |
|
34 | + }, |
|
35 | + 'comment' => Faker::paragraph() |
|
36 | 36 | ]); |
@@ -27,20 +27,20 @@ |
||
27 | 27 | * General factory for the event model. |
28 | 28 | */ |
29 | 29 | $fm->define('OCA\Polls\Db\Event')->setDefinitions([ |
30 | - 'type' => 0, |
|
31 | - 'title' => Faker::sentence(10), |
|
32 | - 'description' => Faker::paragraph(), |
|
33 | - 'owner' => Faker::firstNameMale(), |
|
34 | - 'created' => function () { |
|
35 | - $date = new DateTime('today'); |
|
36 | - return $date->format('Y-m-d H:i:s'); |
|
37 | - }, |
|
38 | - 'access' => 'registered', |
|
39 | - 'expire' => function () { |
|
40 | - $date = new DateTime('tomorrow'); |
|
41 | - return $date->format('Y-m-d H:i:s'); |
|
42 | - }, |
|
43 | - 'hash' => Faker::regexify('[A-Za-z0-9]{16}'), |
|
44 | - 'isAnonymous' => 0, |
|
45 | - 'fullAnonymous' => 0 |
|
30 | + 'type' => 0, |
|
31 | + 'title' => Faker::sentence(10), |
|
32 | + 'description' => Faker::paragraph(), |
|
33 | + 'owner' => Faker::firstNameMale(), |
|
34 | + 'created' => function () { |
|
35 | + $date = new DateTime('today'); |
|
36 | + return $date->format('Y-m-d H:i:s'); |
|
37 | + }, |
|
38 | + 'access' => 'registered', |
|
39 | + 'expire' => function () { |
|
40 | + $date = new DateTime('tomorrow'); |
|
41 | + return $date->format('Y-m-d H:i:s'); |
|
42 | + }, |
|
43 | + 'hash' => Faker::regexify('[A-Za-z0-9]{16}'), |
|
44 | + 'isAnonymous' => 0, |
|
45 | + 'fullAnonymous' => 0 |
|
46 | 46 | ]); |