Completed
Push — master ( 811327...4aef6e )
by Carsten
14:04 queued 19s
created
module/Core/test/CoreTest/Queue/Strategy/LogStrategyTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         '@testConstructor*' => false,
50 50
     ];
51 51
 
52
-    private $inheritance = [ AbstractStrategy::class ];
52
+    private $inheritance = [AbstractStrategy::class];
53 53
 
54 54
     private $attributes = [
55 55
         'tmpl' => [
Please login to merge, or discard this patch.
Core/test/CoreTest/Entity/Hydrator/Factory/ImageSetHydratorFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
         ],
48 48
     ];
49 49
 
50
-    private $inheritance = [ FactoryInterface::class ];
50
+    private $inheritance = [FactoryInterface::class];
51 51
 
52 52
     private function getInvocationArgs()
53 53
     {
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Entity/Hydrator/ImageSetHydratorTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     private $optionsMock;
64 64
 
65
-    private $inheritance = [ HydratorInterface::class ];
65
+    private $inheritance = [HydratorInterface::class];
66 66
 
67 67
     private function getConstructorArgs()
68 68
     {
@@ -124,9 +124,9 @@  discard block
 block discarded – undo
124 124
         ];
125 125
 
126 126
         $imageSpecs = [
127
-            ImageSetInterface::THUMBNAIL => [100,100],
128
-            'large' => [10000,10000],
129
-            'small' => [600,600],
127
+            ImageSetInterface::THUMBNAIL => [100, 100],
128
+            'large' => [10000, 10000],
129
+            'small' => [600, 600],
130 130
         ];
131 131
 
132 132
         $entityMock = $this->getMockBuilder(Image::class)->setMethods(['setFile', 'setName', 'setType'])->getMock();
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Entity/ImageTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 
33 33
     private $target = Image::class;
34 34
 
35
-    private $inheritance = [ FileEntity::class, ImageInterface::class ];
35
+    private $inheritance = [FileEntity::class, ImageInterface::class];
36 36
 
37
-    private $traits = [ ImageTrait::class ];
37
+    private $traits = [ImageTrait::class];
38 38
 }
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Entity/StatusAwareEntityTraitTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -35,34 +35,34 @@
 block discarded – undo
35 35
     {
36 36
         return [
37 37
 
38
-            [ 'status', [
38
+            ['status', [
39 39
                 'value' => new Status(Status::STATE_ONE),
40 40
                 'target' => new StatusAwareEntity(),
41 41
             ]],
42 42
 
43
-            [ 'status', [
43
+            ['status', [
44 44
                 'target' => new ProvideEntityStatusAwareEntity(),
45 45
                 'default' => true,
46
-                'default_assert' => function ($g, $return) {
46
+                'default_assert' => function($g, $return) {
47 47
                     $this->assertEquals(new Status(Status::STATE_ONE), $return);
48 48
                 },
49 49
                 'value' => Status::STATE_TWO,
50
-                'getter_assert' => function ($g, $return, $v) {
50
+                'getter_assert' => function($g, $return, $v) {
51 51
                     $this->assertEquals(new Status(Status::STATE_TWO), $return);
52 52
                 },
53 53
             ]],
54 54
 
55
-            [ 'status', [
55
+            ['status', [
56 56
                 'target' => new StatusAwareEntity(),
57 57
                 'value' => 'state',
58
-                'setter_exception' => [ 'RuntimeException', 'No status entity' ]
58
+                'setter_exception' => ['RuntimeException', 'No status entity']
59 59
             ]],
60 60
 
61
-            [ 'status', [
61
+            ['status', [
62 62
                 'target' => new StatusAwareEntity(),
63 63
                 'value' => new Status(Status::STATE_TWO),
64 64
                 'getter_method' => 'has*',
65
-                'getter_args' => [ Status::STATE_TWO ],
65
+                'getter_args' => [Status::STATE_TWO],
66 66
                 'expect' => true,
67 67
             ]],
68 68
         ];
Please login to merge, or discard this patch.
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.