Passed
Push — master ( c58a40...6d37ad )
by Mathias
10:02 queued 04:27
created
module/Core/test/CoreTest/Entity/EntityTraitTest.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -122,9 +122,9 @@
 block discarded – undo
122 122
     public function testHasPropertyReturnsExpectedResults($target, $expects)
123 123
     {
124 124
         $modes = [EntityInterface::PROPERTY_FACILE,
125
-                  EntityInterface::PROPERTY_GETTER,
126
-                  EntityInterface::PROPERTY_SETTER,
127
-                  EntityInterface::PROPERTY_STRICT];
125
+                    EntityInterface::PROPERTY_GETTER,
126
+                    EntityInterface::PROPERTY_SETTER,
127
+                    EntityInterface::PROPERTY_STRICT];
128 128
 
129 129
         foreach ($modes  as $mode) {
130 130
             $actual = $target->hasProperty('testProperty', $mode);
Please login to merge, or discard this patch.
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -47,19 +47,19 @@  discard block
 block discarded – undo
47 47
         $countable = new \ArrayObject(['not', 'empty']);
48 48
 
49 49
         return [
50
-            [ null, false ],
51
-            [ '', false ],
52
-            [ 'something', true],
53
-            [ 0, false ],
54
-            [ 1, true ],
55
-            [ false, false ],
56
-            [ true, true ],
57
-            [ [], false ],
58
-            [ ['not', 'empty'], true ],
59
-            [ new \stdClass(), true ],
60
-            [ $emptyCountable, false ],
61
-            [ $countable, true ],
62
-            [ self::$fileResource, true ],
50
+            [null, false],
51
+            ['', false],
52
+            ['something', true],
53
+            [0, false],
54
+            [1, true],
55
+            [false, false],
56
+            [true, true],
57
+            [[], false],
58
+            [['not', 'empty'], true],
59
+            [new \stdClass(), true],
60
+            [$emptyCountable, false],
61
+            [$countable, true],
62
+            [self::$fileResource, true],
63 63
 
64 64
         ];
65 65
     }
@@ -106,10 +106,10 @@  discard block
 block discarded – undo
106 106
         $setterTarget = new HasPropertyAndSetterTestTraitEntity();
107 107
         $strictTarget = new HasPropertyAndGetterAndSetterTestTraitEntity();
108 108
         return [
109
-            [ $facileTarget, [true, false ,false, false]],
110
-            [ $getterTarget, [true, true, false, false]],
111
-            [ $setterTarget, [true, false, true, false]],
112
-            [ $strictTarget, [true, true, true, true]],
109
+            [$facileTarget, [true, false, false, false]],
110
+            [$getterTarget, [true, true, false, false]],
111
+            [$setterTarget, [true, false, true, false]],
112
+            [$strictTarget, [true, true, true, true]],
113 113
         ];
114 114
     }
115 115
 
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
         foreach ($modes  as $mode) {
130 130
             $actual = $target->hasProperty('testProperty', $mode);
131 131
             $expect = array_shift($expects);
132
-            $assert = 'assert' . ($expect ? 'true' : 'false');
132
+            $assert = 'assert'.($expect ? 'true' : 'false');
133 133
 
134 134
             $this->$assert($actual);
135 135
         }
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Entity/AbstractEntityTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     public function testSettingInvalidAttributes()
52 52
     {
53 53
         $input = "myValue";
54
-        @$this->target->invalidAttribute=$input;
54
+        @$this->target->invalidAttribute = $input;
55 55
     }
56 56
 
57 57
     /**
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
     public function setValidAttribute($validAttribute)
72 72
     {
73
-        $this->validAttribute=$validAttribute;
73
+        $this->validAttribute = $validAttribute;
74 74
         return $this;
75 75
     }
76 76
 
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Entity/TimelineTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,10 +34,10 @@
 block discarded – undo
34 34
     public function propertiesProvider()
35 35
     {
36 36
         return [
37
-            ['date',[
37
+            ['date', [
38 38
                 'value' => new \DateTime(),
39 39
                 'default' => new \DateTime(),
40
-                'default_assert' => function ($v, $return) {
40
+                'default_assert' => function($v, $return) {
41 41
                     $date = new \DateTime();
42 42
                     $this->assertEquals(
43 43
                         $date->getTimestamp(),
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Entity/PermissionsAwareTraitTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,23 +38,23 @@
 block discarded – undo
38 38
     public function propertiesProvider()
39 39
     {
40 40
         return [
41
-            [ 'permissions', [
41
+            ['permissions', [
42 42
                 'default' => new Permissions('Test/TestEntity'),
43 43
                 'value'   => new Permissions('Test')
44 44
 
45 45
             ]],
46
-            [ 'permissions', [
46
+            ['permissions', [
47 47
                 'default' => new Permissions(PermissionsAwareEntityWithPermissionsType::TYPE),
48 48
                 'value' => false,
49 49
                 'ignore_setter' => true,
50 50
                 'ignore_getter' => true,
51 51
 
52 52
             ]],
53
-            [ 'permissions', [
53
+            ['permissions', [
54 54
                 'default' => new Permissions(PermissionsAwareEntityWithSetupPermissions::TYPE),
55 55
                 'value' => false,
56 56
                 'ignore_setter' => true, 'ignore_getter' => true,
57
-                'post' => function () {
57
+                'post' => function() {
58 58
                     $this->assertTrue($this->target->setupPermissionsCalled);
59 59
                 },
60 60
             ]]
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Entity/Tree/AttachedLeafsTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         'as_reflection' => true,
38 38
     ];
39 39
 
40
-    private $inheritance = [ AbstractLeafs::class, IdentifiableEntityInterface::class ];
40
+    private $inheritance = [AbstractLeafs::class, IdentifiableEntityInterface::class];
41 41
 
42
-    private $traits = [ IdentifiableEntityTrait::class ];
42
+    private $traits = [IdentifiableEntityTrait::class];
43 43
 }
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Entity/Tree/NodeTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -45,9 +45,9 @@  discard block
 block discarded – undo
45 45
         '@testValueFilter' => false,
46 46
     ];
47 47
 
48
-    private $inheritance = [ NodeInterface::class ];
48
+    private $inheritance = [NodeInterface::class];
49 49
 
50
-    private $traits = [ EntityTrait::class, IdentifiableEntityTrait::class ];
50
+    private $traits = [EntityTrait::class, IdentifiableEntityTrait::class];
51 51
 
52 52
     public function propertiesProvider()
53 53
     {
@@ -56,16 +56,16 @@  discard block
 block discarded – undo
56 56
             ['name', 'testName'],
57 57
             ['value', ['value' => '', 'setter_exception' => ['\InvalidArgumentException', 'Value must not be empty']]],
58 58
             ['value', 'testValue'],
59
-            ['value', ['pre' => function () {
59
+            ['value', ['pre' => function() {
60 60
                 $this->target->setName('test Name');
61 61
             }, 'value' => '', 'expect' => 'test_name']],
62
-            ['value', ['pre' => function () {
62
+            ['value', ['pre' => function() {
63 63
                 $this->target->setName('test-Name');
64 64
             }, 'value' => '', 'expect' => 'test_name']],
65
-            ['value', ['pre' => function () {
65
+            ['value', ['pre' => function() {
66 66
                 $this->target->setName('testName');
67 67
             }, 'value' => '', 'expect' => 'testname']],
68
-            ['value', ['pre' => function () {
68
+            ['value', ['pre' => function() {
69 69
                 $this->target->setName('test Name');
70 70
             }, 'ignore_setter' => true, 'value' => 'test_name']],
71 71
             ['priority', 12],
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Entity/Tree/EmbeddedLeafsTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,5 +31,5 @@
 block discarded – undo
31 31
 
32 32
     private $target = EmbeddedLeafs::class;
33 33
 
34
-    private $inheritance = [ AbstractLeafs::class ];
34
+    private $inheritance = [AbstractLeafs::class];
35 35
 }
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Form/Hydrator/Strategy/TreeSelectStrategyTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     private $target = 'getTarget';
44 44
 
45
-    private $inheritance = [ StrategyInterface::class ];
45
+    private $inheritance = [StrategyInterface::class];
46 46
 
47 47
     public function propertiesProvider()
48 48
     {
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
             ['treeRoot', new Node()],
52 52
             ['allowSelectMultipleItems', ['default' => false, 'value' => true, 'getter_method' => '*']],
53 53
             ['allowSelectMultipleItems', ['value' => false, 'getter_method' => '*']],
54
-            ['allowSelectMultipleItems', ['value' => function () {
54
+            ['allowSelectMultipleItems', ['value' => function() {
55 55
                 return true;
56 56
             }, 'getter_method' => '*', 'expect' => true]],
57 57
 
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Form/ContainerTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -134,8 +134,8 @@  discard block
 block discarded – undo
134 134
     public function provideSetFormData()
135 135
     {
136 136
         return [
137
-            ['fieldname','input',true,true ],
138
-            ['fieldname', 'foobar', false, false ],
137
+            ['fieldname', 'input', true, true],
138
+            ['fieldname', 'foobar', false, false],
139 139
         ];
140 140
     }
141 141
 
@@ -192,10 +192,10 @@  discard block
 block discarded – undo
192 192
 
193 193
 
194 194
         return [
195
-            [$e['application'], null , $e['application'] ],
196
-            [$e['job'], 'job' , $e['job'] ],
197
-            [$e['user'], null , $e['user'] ],
198
-            [$e['organization'], null , $e['organization'] ],
195
+            [$e['application'], null, $e['application']],
196
+            [$e['job'], 'job', $e['job']],
197
+            [$e['user'], null, $e['user']],
198
+            [$e['organization'], null, $e['organization']],
199 199
         ];
200 200
     }
201 201
     
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
         $childName = 'child';
214 214
         $child = new Container($childName);
215 215
         $this->target->setForm($childName, $child);
216
-        $this->assertSame($childName .'.' . $name, $child->formatAction($name));
216
+        $this->assertSame($childName.'.'.$name, $child->formatAction($name));
217 217
     }
218 218
     
219 219
     public function testGetActionFor()
Please login to merge, or discard this patch.