Passed
Pull Request — master (#224)
by Kai
02:28
created
tests/Unit/Factories/EventFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,13 +31,13 @@
 block discarded – undo
31 31
 	'title' => Faker::sentence(10),
32 32
 	'description' => Faker::paragraph(),
33 33
 	'owner' => Faker::firstNameMale(),
34
-	'created' => function () {
35
-		$date = new DateTime( 'today');
34
+	'created' => function() {
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 () {
40
-		$date = new DateTime( 'tomorrow');
39
+	'expire' => function() {
40
+		$date = new DateTime('tomorrow');
41 41
 		return $date->format('Y-m-d H:i:s');
42 42
 	},
43 43
 	'hash' => Faker::regexify('[A-Za-z0-9]{16}'),
Please login to merge, or discard this patch.
tests/Unit/Factories/CommentFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@
 block discarded – undo
28 28
  */
29 29
 $fm->define('OCA\Polls\Db\Comment')->setDefinitions([
30 30
 	'userId' => Faker::firstNameMale(),
31
-	'dt' => function () {
32
-		$date = new DateTime( 'today');
31
+	'dt' => function() {
32
+		$date = new DateTime('today');
33 33
 		return $date->format('Y-m-d H:i:s');
34 34
 	},
35 35
 	'comment' => Faker::paragraph()
Please login to merge, or discard this patch.
tests/bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
lib/Db/Model.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,6 +34,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.