Passed
Push — master ( 97bca0...c3d0da )
by Carsten
19:24 queued 12:32
created
module/Core/test/CoreTest/Form/EmptySummaryAwareTraitTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,23 +30,23 @@
 block discarded – undo
30 30
     public function propertiesProvider()
31 31
     {
32 32
         return  [
33
-            [ 'summaryEmpty', [
33
+            ['summaryEmpty', [
34 34
                 'ignore_setter' => true,
35 35
                 'pre' => function() { $this->target->add(['name' => 'test', 'type' => 'text', 'attributes' => ['value'=>'test']]); },
36 36
                 'value' => false,
37 37
                 'getter_method' => 'is*'
38 38
             ]],
39
-            [ 'summaryEmpty', [
39
+            ['summaryEmpty', [
40 40
                 'ignore_setter' => true,
41 41
                 'pre' => function() { $this->target->add(['name' => 'test', 'type' => 'text']); },
42 42
                 'value' => true,
43 43
                 'getter_method' => 'is*',
44 44
             ]],
45
-            [ 'emptySummaryNotice', [
45
+            ['emptySummaryNotice', [
46 46
                 'value' => 'notice',
47 47
                 'default' => null
48 48
             ]],
49
-            [ 'emptySummaryNotice', [
49
+            ['emptySummaryNotice', [
50 50
                 'value' => 'notice',
51 51
                 'default' => 'defaultNotice',
52 52
             ]],
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Form/Element/ToggleButtonTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     protected $target;
26 26
 
27
-    public function setUp(){
27
+    public function setUp() {
28 28
         $this->target = new ToggleButton();
29 29
     }
30 30
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     {
33 33
         $this->assertInstanceOf('Core\Form\Element\ToggleButton', $this->target);
34 34
         $this->assertInstanceOf('Zend\Form\Element', $this->target);
35
-        $this->assertAttributeSame('toggleButton','viewHelper',$this->target);
35
+        $this->assertAttributeSame('toggleButton', 'viewHelper', $this->target);
36 36
     }
37 37
 
38 38
     public function testSetGetViewHelper()
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Form/Element/SpinnerSubmitTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      */
23 23
     protected $target;
24 24
 
25
-    public function setUp(){
25
+    public function setUp() {
26 26
         $this->target = new SpinnerSubmit();
27 27
     }
28 28
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     {
31 31
         $this->assertInstanceOf('Core\Form\Element\SpinnerSubmit', $this->target);
32 32
         $this->assertInstanceOf('Zend\Form\Element', $this->target);
33
-        $this->assertAttributeSame('spinnerButton','viewHelper',$this->target);
33
+        $this->assertAttributeSame('spinnerButton', 'viewHelper', $this->target);
34 34
     }
35 35
 
36 36
     public function testSetGetViewHelper()
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Form/Element/CheckboxTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      */
23 23
     protected $target;
24 24
 
25
-    public function setUp(){
25
+    public function setUp() {
26 26
         $this->target = new Checkbox();
27 27
     }
28 28
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     {
31 31
         $this->assertInstanceOf('Core\Form\Element\Checkbox', $this->target);
32 32
         $this->assertInstanceOf('Zend\Form\Element', $this->target);
33
-        $this->assertAttributeSame('formCheckBox','helper',$this->target);
33
+        $this->assertAttributeSame('formCheckBox', 'helper', $this->target);
34 34
     }
35 35
 
36 36
     public function testSetGetViewHelper()
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Form/Element/FileUploadTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      */
24 24
     protected $target;
25 25
 
26
-    public function setUp(){
26
+    public function setUp() {
27 27
         $this->target = new FileUpload();
28 28
     }
29 29
 
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
     {
32 32
         $this->assertInstanceOf('Core\Form\Element\FileUpload', $this->target);
33 33
         $this->assertInstanceOf('Zend\Form\Element', $this->target);
34
-        $this->assertAttributeSame('formFileUpload',  'helper', $this->target);
35
-        $this->assertAttributeSame(false,  'isMultiple', $this->target);
34
+        $this->assertAttributeSame('formFileUpload', 'helper', $this->target);
35
+        $this->assertAttributeSame(false, 'isMultiple', $this->target);
36 36
     }
37 37
 
38 38
     public function testSetMaxSize() {
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             'attributes',
94 94
             $this->target
95 95
         );
96
-        $this->assertEquals($this->target->getMaxFileCount(),(int) $input);
96
+        $this->assertEquals($this->target->getMaxFileCount(), (int) $input);
97 97
     }
98 98
 
99 99
     /**
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
             'attributes',
122 122
             $this->target
123 123
         );
124
-        $this->assertEquals($this->target->isMultiple(),true);
124
+        $this->assertEquals($this->target->isMultiple(), true);
125 125
         $input = false;
126 126
         $this->target->setIsMultiple($input);
127 127
         $this->assertAttributeSame(
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
             'attributes',
132 132
             $this->target
133 133
         );
134
-        $this->assertEquals($this->target->isMultiple(),false);
134
+        $this->assertEquals($this->target->isMultiple(), false);
135 135
     }
136 136
 
137 137
     public function testPrepareElement()
@@ -152,13 +152,13 @@  discard block
 block discarded – undo
152 152
         );
153 153
     }
154 154
 
155
-    public function testSetGetViewHelper(){
155
+    public function testSetGetViewHelper() {
156 156
         $viewHelper = "test";
157 157
         $this->target->setViewHelper($viewHelper);
158
-        $this->assertEquals($this->target->getViewHelper(),$viewHelper);
158
+        $this->assertEquals($this->target->getViewHelper(), $viewHelper);
159 159
     }
160 160
 
161
-    public function testInputSpecification(){
161
+    public function testInputSpecification() {
162 162
         /* @todo */
163 163
     }
164 164
 }
165 165
\ No newline at end of file
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Form/Element/PhoneTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      */
23 23
     protected $target;
24 24
 
25
-    public function setUp(){
25
+    public function setUp() {
26 26
         $this->target = new Phone();
27 27
     }
28 28
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     {
37 37
         $input = new RegexValidator('/^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{1,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/');
38 38
         $this->target->setValidator($input);
39
-        $this->assertSame($this->target->getValidator(),$input);
39
+        $this->assertSame($this->target->getValidator(), $input);
40 40
     }
41 41
 
42 42
     public function testGetInputSpecification()
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Form/Element/InfoCheckboxTest.php 1 patch
Spacing   +2 added lines, -2 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 InfoCheckbox();
26 26
     }
27 27
 
@@ -29,6 +29,6 @@  discard block
 block discarded – undo
29 29
     {
30 30
         $this->assertInstanceOf('Core\Form\Element\InfoCheckbox', $this->target);
31 31
         $this->assertInstanceOf('Zend\Form\Element', $this->target);
32
-        $this->assertAttributeSame('formInfoCheckBox',  'helper', $this->target);
32
+        $this->assertAttributeSame('formInfoCheckBox', 'helper', $this->target);
33 33
     }
34 34
 }
35 35
\ No newline at end of file
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Form/Tree/ManagementFormTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,14 +32,14 @@
 block discarded – undo
32 32
 
33 33
     private $target = ManagementForm::class;
34 34
 
35
-    private $inheritance = [ SummaryForm::class, HeadscriptProviderInterface::class ];
35
+    private $inheritance = [SummaryForm::class, HeadscriptProviderInterface::class];
36 36
 
37 37
     private $attributes = [
38 38
         'baseFieldset' => 'Core/Tree/ManagementFieldset',
39
-        'attributes'   => [ 'method' => 'POST', 'class' => 'yk-tree-management-form' ],
39
+        'attributes'   => ['method' => 'POST', 'class' => 'yk-tree-management-form'],
40 40
     ];
41 41
 
42 42
     private $properties = [
43
-        [ 'headscripts', ['value' => ['testHeadScript'], 'default' => [ 'modules/Core/js/html.sortable.min.js', 'modules/Core/js/forms.tree-management.js' ]] ]
43
+        ['headscripts', ['value' => ['testHeadScript'], 'default' => ['modules/Core/js/html.sortable.min.js', 'modules/Core/js/forms.tree-management.js']]]
44 44
     ];
45 45
 }
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Form/Tree/ManagementFieldsetTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,12 +40,12 @@
 block discarded – undo
40 40
      */
41 41
     private $target = [
42 42
         ManagementFieldset::class,
43
-        '@testInitialize' => [ 'mock' => ['add'] ],
43
+        '@testInitialize' => ['mock' => ['add']],
44 44
     ];
45 45
 
46
-    private $inheritance = [ Fieldset::class, ViewPartialProviderInterface::class ];
46
+    private $inheritance = [Fieldset::class, ViewPartialProviderInterface::class];
47 47
 
48
-    private $traits = [ ViewPartialProviderTrait::class ];
48
+    private $traits = [ViewPartialProviderTrait::class];
49 49
 
50 50
     private $attributes = [
51 51
         'defaultPartial' => 'core/form/tree-manage',
Please login to merge, or discard this patch.