diff options
author | dartcafe <github@dartcafe.de> | 2018-05-03 22:44:28 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2018-05-03 22:44:28 +0300 |
commit | 7496d9aca9458357d67de7c6d9eb611610479dc6 (patch) | |
tree | b11f9bc3e95cd15139eb84fda9247820ef8b649f /tests | |
parent | 444f88f3105fc33ca8438296cfd9728be3b5c76e (diff) |
Revert "Scrutinizer Auto-Fixes"
This reverts commit 74e880d4076eecbc0ec9ead3f1e81cf559a238e1.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Unit/Factories/CommentFactory.php | 2 | ||||
-rw-r--r-- | tests/Unit/Factories/EventFactory.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/Unit/Factories/CommentFactory.php b/tests/Unit/Factories/CommentFactory.php index 02dc6d5d..f4148751 100644 --- a/tests/Unit/Factories/CommentFactory.php +++ b/tests/Unit/Factories/CommentFactory.php @@ -28,7 +28,7 @@ use League\FactoryMuffin\Faker\Facade as Faker; */ $fm->define('OCA\Polls\Db\Comment')->setDefinitions([ 'userId' => Faker::firstNameMale(), - 'dt' => function() { + 'dt' => function () { $date = new DateTime('today'); return $date->format('Y-m-d H:i:s'); }, diff --git a/tests/Unit/Factories/EventFactory.php b/tests/Unit/Factories/EventFactory.php index 030cf409..2cb91c9b 100644 --- a/tests/Unit/Factories/EventFactory.php +++ b/tests/Unit/Factories/EventFactory.php @@ -31,12 +31,12 @@ $fm->define('OCA\Polls\Db\Event')->setDefinitions([ 'title' => Faker::sentence(10), 'description' => Faker::text(255), 'owner' => Faker::firstNameMale(), - 'created' => function() { + 'created' => function () { $date = new DateTime('today'); return $date->format('Y-m-d H:i:s'); }, 'access' => 'registered', - 'expire' => function() { + 'expire' => function () { $date = new DateTime('tomorrow'); return $date->format('Y-m-d H:i:s'); }, |