Passed
Push — master ( 97bca0...c3d0da )
by Carsten
19:24 queued 12:32
created
module/Core/test/CoreTest/Entity/EntityTraitTest.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -120,9 +120,9 @@
 block discarded – undo
120 120
     public function testHasPropertyReturnsExpectedResults($target, $expects)
121 121
     {
122 122
         $modes = [EntityInterface::PROPERTY_FACILE,
123
-                  EntityInterface::PROPERTY_GETTER,
124
-                  EntityInterface::PROPERTY_SETTER,
125
-                  EntityInterface::PROPERTY_STRICT];
123
+                    EntityInterface::PROPERTY_GETTER,
124
+                    EntityInterface::PROPERTY_SETTER,
125
+                    EntityInterface::PROPERTY_STRICT];
126 126
 
127 127
         foreach ($modes  as $mode) {
128 128
 
Please login to merge, or discard this patch.
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     }
35 35
 
36 36
 
37
-    public function setUp(){
37
+    public function setUp() {
38 38
         $this->target = new TraitEntity();
39 39
     }
40 40
 
@@ -45,19 +45,19 @@  discard block
 block discarded – undo
45 45
         $countable = new \ArrayObject(['not', 'empty']);
46 46
 
47 47
         return [
48
-            [ null, false ],
49
-            [ '', false ],
50
-            [ 'something', true],
51
-            [ 0, false ],
52
-            [ 1, true ],
53
-            [ false, false ],
54
-            [ true, true ],
55
-            [ [], false ],
56
-            [ ['not', 'empty'], true ],
57
-            [ new \stdClass(), true ],
58
-            [ $emptyCountable, false ],
59
-            [ $countable, true ],
60
-            [ self::$fileResource, true ],
48
+            [null, false],
49
+            ['', false],
50
+            ['something', true],
51
+            [0, false],
52
+            [1, true],
53
+            [false, false],
54
+            [true, true],
55
+            [[], false],
56
+            [['not', 'empty'], true],
57
+            [new \stdClass(), true],
58
+            [$emptyCountable, false],
59
+            [$countable, true],
60
+            [self::$fileResource, true],
61 61
 
62 62
         ];
63 63
     }
@@ -104,10 +104,10 @@  discard block
 block discarded – undo
104 104
         $setterTarget = new HasPropertyAndSetterTestTraitEntity();
105 105
         $strictTarget = new HasPropertyAndGetterAndSetterTestTraitEntity();
106 106
         return [
107
-            [ $facileTarget, [true, false ,false, false]],
108
-            [ $getterTarget, [true, true, false, false]],
109
-            [ $setterTarget, [true, false, true, false]],
110
-            [ $strictTarget, [true, true, true, true]],
107
+            [$facileTarget, [true, false, false, false]],
108
+            [$getterTarget, [true, true, false, false]],
109
+            [$setterTarget, [true, false, true, false]],
110
+            [$strictTarget, [true, true, true, true]],
111 111
         ];
112 112
     }
113 113
 
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 
129 129
             $actual = $target->hasProperty('testProperty', $mode);
130 130
             $expect = array_shift($expects);
131
-            $assert = 'assert' . ($expect ? 'true' : 'false');
131
+            $assert = 'assert'.($expect ? 'true' : 'false');
132 132
 
133 133
             $this->$assert($actual);
134 134
         }
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Entity/StatusAwareEntityTraitTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -34,30 +34,30 @@
 block discarded – undo
34 34
 
35 35
         return [
36 36
 
37
-            [ 'status', [
37
+            ['status', [
38 38
                 'value' => new Status(Status::STATE_ONE),
39 39
                 'target' => new StatusAwareEntity(),
40 40
             ]],
41 41
 
42
-            [ 'status', [
42
+            ['status', [
43 43
                 'target' => new ProvideEntityStatusAwareEntity(),
44 44
                 'default' => true,
45
-                'default_assert' => function ($g, $return) { $this->assertEquals(new Status(Status::STATE_ONE), $return); },
45
+                'default_assert' => function($g, $return) { $this->assertEquals(new Status(Status::STATE_ONE), $return); },
46 46
                 'value' => Status::STATE_TWO,
47 47
                 'getter_assert' => function($g, $return, $v) { $this->assertEquals(new Status(Status::STATE_TWO), $return); },
48 48
             ]],
49 49
 
50
-            [ 'status', [
50
+            ['status', [
51 51
                 'target' => new StatusAwareEntity(),
52 52
                 'value' => 'state',
53
-                'setter_exception' => [ 'RuntimeException', 'No status entity' ]
53
+                'setter_exception' => ['RuntimeException', 'No status entity']
54 54
             ]],
55 55
 
56
-            [ 'status', [
56
+            ['status', [
57 57
                 'target' => new StatusAwareEntity(),
58 58
                 'value' => new Status(Status::STATE_TWO),
59 59
                 'getter_method' => 'has*',
60
-                'getter_args' => [ Status::STATE_TWO ],
60
+                'getter_args' => [Status::STATE_TWO],
61 61
                 'expect' => true,
62 62
             ]],
63 63
         ];
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Options/FieldsetCustomizationOptionsTest.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -124,18 +124,18 @@
 block discarded – undo
124 124
     private function getPreparedTarget()
125 125
     {
126 126
         return new FieldsetCustomizationOptions([
127
-           'fields' => [
128
-               'field' => [
129
-                   'attributes' => ['attr' => 'attrVal'],
130
-                   'options' => ['opt1' => 'optVal' ],
131
-                   'label' => 'label',
132
-                   'required' => true,
133
-                   'type' => 'ElementType',
134
-                   'priority' => 12,
135
-                   'flags' => ['priority' => 10],
136
-                   'input_filter' => ['test' => 'works'],
137
-               ],
138
-           ],
127
+            'fields' => [
128
+                'field' => [
129
+                    'attributes' => ['attr' => 'attrVal'],
130
+                    'options' => ['opt1' => 'optVal' ],
131
+                    'label' => 'label',
132
+                    'required' => true,
133
+                    'type' => 'ElementType',
134
+                    'priority' => 12,
135
+                    'flags' => ['priority' => 10],
136
+                    'input_filter' => ['test' => 'works'],
137
+                ],
138
+            ],
139 139
         ]);
140 140
     }
141 141
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         '@testCopyArrayValues' => Fcot_Mock::class,
42 42
     ];
43 43
 
44
-    private $inheritance = [ AbstractOptions::class ];
44
+    private $inheritance = [AbstractOptions::class];
45 45
 
46 46
     public function propertiesProvider()
47 47
     {
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
            'fields' => [
128 128
                'field' => [
129 129
                    'attributes' => ['attr' => 'attrVal'],
130
-                   'options' => ['opt1' => 'optVal' ],
130
+                   'options' => ['opt1' => 'optVal'],
131 131
                    'label' => 'label',
132 132
                    'required' => true,
133 133
                    'type' => 'ElementType',
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Options/Exception/MissingOptionExceptionTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
     protected $target = [
31 31
         'class' => '\Core\Options\Exception\MissingOptionException',
32
-        'args' => [ 'testOptionKey', 'TestTarget' ]
32
+        'args' => ['testOptionKey', 'TestTarget']
33 33
     ];
34 34
 
35 35
     protected $inheritance = [
@@ -44,29 +44,29 @@  discard block
 block discarded – undo
44 44
         $target2 = new MissingOptionException('-', new \stdClass());
45 45
 
46 46
         return [
47
-            [ 'OptionKey', [
47
+            ['OptionKey', [
48 48
                 'value' => 'testOptionKey',
49 49
                 'ignore_setter' => true,
50 50
             ]],
51
-            [ 'target', [
51
+            ['target', [
52 52
                 'value' => 'TestTarget',
53 53
                 'ignore_setter' => true,
54 54
             ]],
55
-            [ 'targetFQCN', [
55
+            ['targetFQCN', [
56 56
                 'value' => 'stdClass',
57 57
                 'target' => $target2,
58 58
                 'ignore_setter' => true,
59 59
             ]],
60
-            [ 'targetFQCN', [
60
+            ['targetFQCN', [
61 61
                 'value' => 'TestTarget',
62 62
                 'ignore_setter' => true,
63 63
             ]],
64
-            [ 'previous', [
64
+            ['previous', [
65 65
                 'value' => $ex,
66 66
                 'target' => $target,
67 67
                 'ignore_setter' => true,
68 68
             ]],
69
-            [ 'message', [
69
+            ['message', [
70 70
                 'value' => 'Missing value for option "testOptionKey" in "TestTarget"',
71 71
                 'ignore_setter' => true,
72 72
             ]]
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Options/ModuleOptionsTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,8 +104,8 @@
 block discarded – undo
104 104
     public function testGetSiteNameThrowsExceptionIfNotSet()
105 105
     {
106 106
         $this->setExpectedException(
107
-             '\Core\Options\Exception\MissingOptionException',
108
-             'Missing value for option "siteName"'
107
+                '\Core\Options\Exception\MissingOptionException',
108
+                'Missing value for option "siteName"'
109 109
         );
110 110
 
111 111
         $this->target->setSiteName('');
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Options/ImageSetOptionsTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,12 +30,12 @@
 block discarded – undo
30 30
 
31 31
     private $target = ImageSetOptions::class;
32 32
 
33
-    private $inheritance = [ AbstractOptions::class ];
33
+    private $inheritance = [AbstractOptions::class];
34 34
 
35 35
     private $properties = [
36 36
         ['entityClass', ['default' => Image::class, '@value' => Image::class]],
37 37
         ['formElementName', ['default' => ImageSetInterface::ORIGINAL, 'value' => 'formElementNameValue']],
38
-        ['images', ['default'=>[ImageSetInterface::THUMBNAIL => [100,100]], 'value' => ['a' => [1,1]]]],
38
+        ['images', ['default'=>[ImageSetInterface::THUMBNAIL => [100, 100]], 'value' => ['a' => [1, 1]]]],
39 39
         ['entity', ['ignore_setter' => true, 'value@' => Image::class]],
40 40
     ];
41 41
 
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Form/FormTest.php 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     }
85 85
 
86 86
     public function testDisableElement() {
87
-       /* @todo */
87
+        /* @todo */
88 88
     }
89 89
 
90 90
     /**
@@ -118,9 +118,9 @@  discard block
 block discarded – undo
118 118
             foreach ($classes as $class) {
119 119
                 $this->target->addClass($class);
120 120
             }
121
-         }elseif (is_string($classes)){
121
+            }elseif (is_string($classes)){
122 122
             $this->target->addClass($classes);
123
-         }
123
+            }
124 124
 
125 125
         $x=$this->target->getAttribute('class');
126 126
         $this->assertEquals($x, $expected);
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -22,13 +22,13 @@  discard block
 block discarded – undo
22 22
      */
23 23
     protected $target;
24 24
 
25
-    public function setUp(){
26
-        $fs = new Fieldset('test',['type'=>"text"]);
27
-        $fs->setAttribute('class','myclass1 myclass2');
25
+    public function setUp() {
26
+        $fs = new Fieldset('test', ['type'=>"text"]);
27
+        $fs->setAttribute('class', 'myclass1 myclass2');
28 28
         $fs->setName('myField');
29 29
         $target = new Form();
30 30
         $target->add($fs);
31
-        $this->target=$target;
31
+        $this->target = $target;
32 32
     }
33 33
 
34 34
     public function testConstructor()
@@ -44,10 +44,10 @@  discard block
 block discarded – undo
44 44
     public function testSetGetIsDescriptionEnabled() {
45 45
         $input = true;
46 46
         $this->target->setIsDescriptionsEnabled($input);
47
-        $this->assertEquals($this->target->isDescriptionsEnabled(),$input);
47
+        $this->assertEquals($this->target->isDescriptionsEnabled(), $input);
48 48
         $input = false;
49 49
         $this->target->setIsDescriptionsEnabled($input);
50
-        $this->assertEquals($this->target->isDescriptionsEnabled(),$input);
50
+        $this->assertEquals($this->target->isDescriptionsEnabled(), $input);
51 51
     }
52 52
 
53 53
     public function testSetDescription() {
@@ -59,27 +59,27 @@  discard block
 block discarded – undo
59 59
 
60 60
     public function testSetDescriptionWithAdditionalParams() {
61 61
         $input = "this is my description";
62
-        $this->target->setDescription($input,['p1','p2']);
62
+        $this->target->setDescription($input, ['p1', 'p2']);
63 63
         $this->assertAttributeSame(['description' => $input,
64
-                                    'description_params' => ['p1','p2']], 'options', $this->target);
64
+                                    'description_params' => ['p1', 'p2']], 'options', $this->target);
65 65
     }
66 66
 
67
-    public function testSetGetIsDisableCapable(){
67
+    public function testSetGetIsDisableCapable() {
68 68
         $input = true;
69 69
         $this->target->setIsDisableCapable($input);
70 70
         $this->assertAttributeSame(['is_disable_capable' => $input], 'options', $this->target);
71
-        $this->assertEquals($this->target->isDisableCapable(),$input);
71
+        $this->assertEquals($this->target->isDisableCapable(), $input);
72 72
     }
73 73
 
74 74
     /**
75 75
      * @covers Core\Form\Form::setIsDisableElementsCapable
76 76
      * @covers Core\Form\Form::isDisableElementsCapable
77 77
      */
78
-    public function testSetGetIsDisableElementsCapable(){
78
+    public function testSetGetIsDisableElementsCapable() {
79 79
         $input = true;
80 80
         $this->target->setIsDisableElementsCapable($input);
81 81
         $this->assertAttributeSame(['is_disable_elements_capable' => $input], 'options', $this->target);
82
-        $this->assertEquals($this->target->isDisableElementsCapable(),$input);
82
+        $this->assertEquals($this->target->isDisableElementsCapable(), $input);
83 83
 
84 84
     }
85 85
 
@@ -113,16 +113,16 @@  discard block
 block discarded – undo
113 113
      * @param string $class     the expected name for the status
114 114
      * @param string $expected  the expected order for the status
115 115
      */
116
-    public function testAddClass($classes,$expected) {
116
+    public function testAddClass($classes, $expected) {
117 117
         if (is_array($classes)) {
118 118
             foreach ($classes as $class) {
119 119
                 $this->target->addClass($class);
120 120
             }
121
-         }elseif (is_string($classes)){
121
+         }elseif (is_string($classes)) {
122 122
             $this->target->addClass($classes);
123 123
          }
124 124
 
125
-        $x=$this->target->getAttribute('class');
125
+        $x = $this->target->getAttribute('class');
126 126
         $this->assertEquals($x, $expected);
127 127
     }
128 128
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
             foreach ($classes as $class) {
119 119
                 $this->target->addClass($class);
120 120
             }
121
-         }elseif (is_string($classes)){
121
+         } elseif (is_string($classes)){
122 122
             $this->target->addClass($classes);
123 123
          }
124 124
 
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Form/ContainerTest.php 2 patches
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     protected $target;
29 29
 
30
-    public function setUp(){
30
+    public function setUp() {
31 31
         $this->target = new Container();
32 32
     }
33 33
 
@@ -40,19 +40,19 @@  discard block
 block discarded – undo
40 40
         $this->assertInstanceOf(\Core\Form\FormParentInterface::class, $this->target);
41 41
     }
42 42
 
43
-    public function testSetFormElementManager(){
43
+    public function testSetFormElementManager() {
44 44
         $input = new ServiceManager();
45
-        $this->assertSame($this->target,$this->target->setFormElementManager($input));
45
+        $this->assertSame($this->target, $this->target->setFormElementManager($input));
46 46
     }
47 47
 
48 48
     /**
49 49
      * @dataProvider provideBool
50 50
      * @param $input
51 51
      */
52
-    public function testSetGetIsDisableCapable($input){
52
+    public function testSetGetIsDisableCapable($input) {
53 53
         $this->target->setIsDisableCapable($input);
54
-        $this->assertSame($this->target->isDisableCapable(),$input);
55
-        $this->assertSame($this->target->getOption('is_disable_capable'),$input);
54
+        $this->assertSame($this->target->isDisableCapable(), $input);
55
+        $this->assertSame($this->target->getOption('is_disable_capable'), $input);
56 56
 
57 57
     }
58 58
 
@@ -60,13 +60,13 @@  discard block
 block discarded – undo
60 60
      * @dataProvider provideBool
61 61
      * @param $input
62 62
      */
63
-    public function testSetGetIsDisableElementCapable($input){
63
+    public function testSetGetIsDisableElementCapable($input) {
64 64
         $this->target->setIsDisableElementsCapable($input);
65
-        $this->assertSame($this->target->isDisableElementsCapable(),$input);
66
-        $this->assertSame($this->target->getOption('is_disable_elements_capable'),$input);
65
+        $this->assertSame($this->target->isDisableElementsCapable(), $input);
66
+        $this->assertSame($this->target->getOption('is_disable_elements_capable'), $input);
67 67
     }
68 68
 
69
-    public function provideBool (){
69
+    public function provideBool() {
70 70
         return [
71 71
             [true, true],
72 72
             [false, false],
@@ -77,11 +77,11 @@  discard block
 block discarded – undo
77 77
      * @covers Core\Form\Container::setParent()
78 78
      * @covers Core\Form\Container::getParent()
79 79
      */
80
-    public function testSetGetParent(){
80
+    public function testSetGetParent() {
81 81
         $input = "improve this";
82 82
         $this->target->setParent($input);
83
-        $this->assertSame($this->target->getParent(),$input);
84
-        $this->assertSame($this->target->hasParent(),true);
83
+        $this->assertSame($this->target->getParent(), $input);
84
+        $this->assertSame($this->target->hasParent(), true);
85 85
     }
86 86
 
87 87
 
@@ -98,17 +98,17 @@  discard block
 block discarded – undo
98 98
      * @param $enabled
99 99
      * @dataProvider provideSetFormData
100 100
      */
101
-    public function testSetForm($key,$spec,$enabled, $expected){
101
+    public function testSetForm($key, $spec, $enabled, $expected) {
102 102
         /* @var $target Container */
103 103
         $target = $this->getMockBuilder('\Core\Form\Container')
104 104
             ->disableOriginalConstructor()
105 105
             ->setMethods(array('setParent'))
106 106
             ->getMock();
107
-        $target->setForm($key,$spec,$enabled);
107
+        $target->setForm($key, $spec, $enabled);
108 108
         if ($expected) {
109
-            $this->assertAttributeContains($key,'activeForms',$target);
110
-        }else{
111
-            $this->assertAttributeNotContains($key,'activeForms',$target);
109
+            $this->assertAttributeContains($key, 'activeForms', $target);
110
+        } else {
111
+            $this->assertAttributeNotContains($key, 'activeForms', $target);
112 112
         }
113 113
         $this->assertAttributeSame(
114 114
             [$key => [
@@ -124,12 +124,12 @@  discard block
 block discarded – undo
124 124
 
125 125
     public function provideSetFormData() {
126 126
         return [
127
-            ['fieldname','input',true,true ],
128
-            ['fieldname', 'foobar', false, false ],
127
+            ['fieldname', 'input', true, true],
128
+            ['fieldname', 'foobar', false, false],
129 129
         ];
130 130
     }
131 131
 
132
-    public function testSetFormWithArray(){
132
+    public function testSetFormWithArray() {
133 133
         $key1 = "key1";
134 134
         $key2 = "key2";
135 135
         $spec = [
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
             ->disableOriginalConstructor()
145 145
             ->setMethods(array('setParent'))
146 146
             ->getMock();
147
-        $target->setForm($key1,$spec,true);
147
+        $target->setForm($key1, $spec, true);
148 148
 
149 149
         $this->assertAttributeSame(
150 150
 
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
     /**
165 165
      * @dataProvider provideEntities
166 166
      */
167
-    public function testSetGetEntity($input, $key, $expected )
167
+    public function testSetGetEntity($input, $key, $expected)
168 168
     {
169 169
         $this->target->setEntity($input, $key, $expected);
170 170
         $this->assertEquals($expected, $this->target->getEntity($key));
@@ -180,10 +180,10 @@  discard block
 block discarded – undo
180 180
 
181 181
 
182 182
         return [
183
-            [$e['application'], null , $e['application'] ],
184
-            [$e['job'], 'job' , $e['job'] ],
185
-            [$e['user'], null , $e['user'] ],
186
-            [$e['organization'], null , $e['organization'] ],
183
+            [$e['application'], null, $e['application']],
184
+            [$e['job'], 'job', $e['job']],
185
+            [$e['user'], null, $e['user']],
186
+            [$e['organization'], null, $e['organization']],
187 187
         ];
188 188
     }
189 189
     
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
         $childName = 'child';
202 202
         $child = new Container($childName);
203 203
         $this->target->setForm($childName, $child);
204
-        $this->assertSame($childName .'.' . $name, $child->formatAction($name));
204
+        $this->assertSame($childName.'.'.$name, $child->formatAction($name));
205 205
     }
206 206
     
207 207
     public function testGetActionFor()
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
         $target->setForm($key,$spec,$enabled);
108 108
         if ($expected) {
109 109
             $this->assertAttributeContains($key,'activeForms',$target);
110
-        }else{
110
+        } else{
111 111
             $this->assertAttributeNotContains($key,'activeForms',$target);
112 112
         }
113 113
         $this->assertAttributeSame(
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Form/SummaryFormTest.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
      * @param string $expected  render mode
41 41
      */
42 42
     public function testSetGetRenderModer($input,$expected) {
43
-       $this->target->setRenderMode($input);
44
-       $this->assertSame($this->target->getRenderMode(),$expected);
43
+        $this->target->setRenderMode($input);
44
+        $this->assertSame($this->target->getRenderMode(),$expected);
45 45
     }
46 46
 
47 47
     public function providerRenderMode()
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     }
76 76
 
77 77
     public function testIsValid(){
78
-       /* @todo */
78
+        /* @todo */
79 79
     }
80 80
 
81 81
     /**
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      */
22 22
     protected $target;
23 23
 
24
-    public function setUp(){
24
+    public function setUp() {
25 25
         $this->target = new SummaryForm();
26 26
     }
27 27
 
@@ -39,16 +39,16 @@  discard block
 block discarded – undo
39 39
      * @param string $input     render mode
40 40
      * @param string $expected  render mode
41 41
      */
42
-    public function testSetGetRenderModer($input,$expected) {
42
+    public function testSetGetRenderModer($input, $expected) {
43 43
        $this->target->setRenderMode($input);
44
-       $this->assertSame($this->target->getRenderMode(),$expected);
44
+       $this->assertSame($this->target->getRenderMode(), $expected);
45 45
     }
46 46
 
47 47
     public function providerRenderMode()
48 48
     {
49 49
         return [
50
-            [SummaryFormInterface::RENDER_FORM,SummaryFormInterface::RENDER_FORM],
51
-            [SummaryFormInterface::RENDER_SUMMARY,SummaryFormInterface::RENDER_SUMMARY],
50
+            [SummaryFormInterface::RENDER_FORM, SummaryFormInterface::RENDER_FORM],
51
+            [SummaryFormInterface::RENDER_SUMMARY, SummaryFormInterface::RENDER_SUMMARY],
52 52
             [SummaryFormInterface::RENDER_ALL, SummaryFormInterface::RENDER_ALL],
53 53
         ];
54 54
     }
@@ -61,20 +61,20 @@  discard block
 block discarded – undo
61 61
      * @param string $input     display mode
62 62
      * @param string $expected  display mode
63 63
      */
64
-    public function testSetGetDisplayModer($input,$expected) {
64
+    public function testSetGetDisplayModer($input, $expected) {
65 65
         $this->target->setDisplayMode($input);
66
-        $this->assertSame($this->target->getDisplayMode(),$expected);
66
+        $this->assertSame($this->target->getDisplayMode(), $expected);
67 67
     }
68 68
 
69 69
     public function providerDisplayMode()
70 70
     {
71 71
         return [
72
-            [SummaryFormInterface::DISPLAY_FORM,SummaryFormInterface::DISPLAY_FORM],
73
-            [SummaryFormInterface::DISPLAY_SUMMARY,SummaryFormInterface::DISPLAY_SUMMARY],
72
+            [SummaryFormInterface::DISPLAY_FORM, SummaryFormInterface::DISPLAY_FORM],
73
+            [SummaryFormInterface::DISPLAY_SUMMARY, SummaryFormInterface::DISPLAY_SUMMARY],
74 74
         ];
75 75
     }
76 76
 
77
-    public function testIsValid(){
77
+    public function testIsValid() {
78 78
        /* @todo */
79 79
     }
80 80
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      * @param string $expected  display mode
87 87
      */
88 88
     public function testSetOptions($input, $expected) {
89
-        $this->target->setOptions(['display_mode' => $input ]);
90
-        $this->assertSame($this->target->getDisplayMode(),$expected);
89
+        $this->target->setOptions(['display_mode' => $input]);
90
+        $this->assertSame($this->target->getDisplayMode(), $expected);
91 91
     }
92 92
 }
93 93
\ No newline at end of file
Please login to merge, or discard this patch.