@@ -25,8 +25,8 @@ |
||
| 25 | 25 | define('PHPUNIT_RUN', 1); |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | -require_once(__DIR__.'/../../../lib/base.php'); |
|
| 29 | -require_once(__DIR__.'/../vendor/autoload.php'); |
|
| 28 | +require_once(__DIR__ . '/../../../lib/base.php'); |
|
| 29 | +require_once(__DIR__ . '/../vendor/autoload.php'); |
|
| 30 | 30 | |
| 31 | 31 | \OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests'); |
| 32 | 32 | \OC_App::loadApp('polls'); |
@@ -34,6 +34,6 @@ |
||
| 34 | 34 | * @param $value |
| 35 | 35 | */ |
| 36 | 36 | public function __set($name, $value) { |
| 37 | - $this->setter($name, [$value]); |
|
| 37 | + $this->setter($name, [ $value ]); |
|
| 38 | 38 | } |
| 39 | 39 | } |
@@ -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::paragraph(), |
| 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 | }, |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | $fm->define('OCA\Polls\Db\Participation')->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 | }, |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | * General factory for the date model. |
| 26 | 26 | */ |
| 27 | 27 | $fm->define('OCA\Polls\Db\Date')->setDefinitions([ |
| 28 | - 'dt' => function () { |
|
| 28 | + 'dt' => function() { |
|
| 29 | 29 | $date = new DateTime('today'); |
| 30 | 30 | return $date->format('Y-m-d H:i:s'); |
| 31 | 31 | } |