Completed
Push — develop ( aa97bb...91573b )
by
unknown
09:37
created
tests/PhpSpreadsheet/Shared/TimeZoneTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
         );
18 18
 
19 19
         foreach ($timezoneValues as $timezoneValue) {
20
-            $result = call_user_func(array(TimeZone::class,'setTimezone'), $timezoneValue);
20
+            $result = call_user_func(array(TimeZone::class, 'setTimezone'), $timezoneValue);
21 21
             $this->assertTrue($result);
22 22
         }
23 23
     }
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     public function testSetTimezoneWithInvalidValue()
26 26
     {
27 27
         $unsupportedTimezone = 'Etc/GMT+10';
28
-        $result = call_user_func(array(TimeZone::class,'setTimezone'), $unsupportedTimezone);
28
+        $result = call_user_func(array(TimeZone::class, 'setTimezone'), $unsupportedTimezone);
29 29
         $this->assertFalse($result);
30 30
     }
31 31
 }
Please login to merge, or discard this patch.
tests/PhpSpreadsheet/CellTest.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     {
15 15
         $args = func_get_args();
16 16
         $expectedResult = array_pop($args);
17
-        $result = call_user_func_array(array(Cell::class,'columnIndexFromString'), $args);
17
+        $result = call_user_func_array(array(Cell::class, 'columnIndexFromString'), $args);
18 18
         $this->assertEquals($expectedResult, $result);
19 19
     }
20 20
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     {
28 28
         $cellAddress = 'ABCD';
29 29
         try {
30
-            $result = call_user_func(array(Cell::class,'columnIndexFromString'), $cellAddress);
30
+            $result = call_user_func(array(Cell::class, 'columnIndexFromString'), $cellAddress);
31 31
         } catch (\Exception $e) {
32 32
             $this->assertInstanceOf(Exception::class, $e);
33 33
             $this->assertEquals($e->getMessage(), 'Column string index can not be longer than 3 characters');
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     {
41 41
         $cellAddress = '';
42 42
         try {
43
-            $result = call_user_func(array(Cell::class,'columnIndexFromString'), $cellAddress);
43
+            $result = call_user_func(array(Cell::class, 'columnIndexFromString'), $cellAddress);
44 44
         } catch (\Exception $e) {
45 45
             $this->assertInstanceOf(Exception::class, $e);
46 46
             $this->assertEquals($e->getMessage(), 'Column string index can not be empty');
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     {
57 57
         $args = func_get_args();
58 58
         $expectedResult = array_pop($args);
59
-        $result = call_user_func_array(array(Cell::class,'stringFromColumnIndex'), $args);
59
+        $result = call_user_func_array(array(Cell::class, 'stringFromColumnIndex'), $args);
60 60
         $this->assertEquals($expectedResult, $result);
61 61
     }
62 62
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     {
73 73
         $args = func_get_args();
74 74
         $expectedResult = array_pop($args);
75
-        $result = call_user_func_array(array(Cell::class,'coordinateFromString'), $args);
75
+        $result = call_user_func_array(array(Cell::class, 'coordinateFromString'), $args);
76 76
         $this->assertEquals($expectedResult, $result);
77 77
     }
78 78
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     {
86 86
         $cellAddress = 'A1:AI2012';
87 87
         try {
88
-            $result = call_user_func(array(Cell::class,'coordinateFromString'), $cellAddress);
88
+            $result = call_user_func(array(Cell::class, 'coordinateFromString'), $cellAddress);
89 89
         } catch (\Exception $e) {
90 90
             $this->assertInstanceOf(Exception::class, $e);
91 91
             $this->assertEquals($e->getMessage(), 'Cell coordinate string can not be a range of cells');
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     {
99 99
         $cellAddress = '';
100 100
         try {
101
-            $result = call_user_func(array(Cell::class,'coordinateFromString'), $cellAddress);
101
+            $result = call_user_func(array(Cell::class, 'coordinateFromString'), $cellAddress);
102 102
         } catch (\Exception $e) {
103 103
             $this->assertInstanceOf(Exception::class, $e);
104 104
             $this->assertEquals($e->getMessage(), 'Cell coordinate can not be zero-length string');
@@ -111,10 +111,10 @@  discard block
 block discarded – undo
111 111
     {
112 112
         $cellAddress = 'AI';
113 113
         try {
114
-            $result = call_user_func(array(Cell::class,'coordinateFromString'), $cellAddress);
114
+            $result = call_user_func(array(Cell::class, 'coordinateFromString'), $cellAddress);
115 115
         } catch (\Exception $e) {
116 116
             $this->assertInstanceOf(Exception::class, $e);
117
-            $this->assertEquals($e->getMessage(), 'Invalid cell coordinate '.$cellAddress);
117
+            $this->assertEquals($e->getMessage(), 'Invalid cell coordinate ' . $cellAddress);
118 118
             return;
119 119
         }
120 120
         $this->fail('An expected exception has not been raised.');
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     {
128 128
         $args = func_get_args();
129 129
         $expectedResult = array_pop($args);
130
-        $result = call_user_func_array(array(Cell::class,'absoluteCoordinate'), $args);
130
+        $result = call_user_func_array(array(Cell::class, 'absoluteCoordinate'), $args);
131 131
         $this->assertEquals($expectedResult, $result);
132 132
     }
133 133
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     {
141 141
         $cellAddress = 'A1:AI2012';
142 142
         try {
143
-            $result = call_user_func(array(Cell::class,'absoluteCoordinate'), $cellAddress);
143
+            $result = call_user_func(array(Cell::class, 'absoluteCoordinate'), $cellAddress);
144 144
         } catch (\Exception $e) {
145 145
             $this->assertInstanceOf(Exception::class, $e);
146 146
             $this->assertEquals($e->getMessage(), 'Cell coordinate string can not be a range of cells');
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     {
157 157
         $args = func_get_args();
158 158
         $expectedResult = array_pop($args);
159
-        $result = call_user_func_array(array(Cell::class,'absoluteReference'), $args);
159
+        $result = call_user_func_array(array(Cell::class, 'absoluteReference'), $args);
160 160
         $this->assertEquals($expectedResult, $result);
161 161
     }
162 162
 
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
     {
170 170
         $cellAddress = 'A1:AI2012';
171 171
         try {
172
-            $result = call_user_func(array(Cell::class,'absoluteReference'), $cellAddress);
172
+            $result = call_user_func(array(Cell::class, 'absoluteReference'), $cellAddress);
173 173
         } catch (\Exception $e) {
174 174
             $this->assertInstanceOf(Exception::class, $e);
175 175
             $this->assertEquals($e->getMessage(), 'Cell coordinate string can not be a range of cells');
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
     {
186 186
         $args = func_get_args();
187 187
         $expectedResult = array_pop($args);
188
-        $result = call_user_func_array(array(Cell::class,'splitRange'), $args);
188
+        $result = call_user_func_array(array(Cell::class, 'splitRange'), $args);
189 189
         foreach ($result as $key => $split) {
190 190
             if (!is_array($expectedResult[$key])) {
191 191
                 $this->assertEquals($expectedResult[$key], $split[0]);
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
     {
208 208
         $args = func_get_args();
209 209
         $expectedResult = array_pop($args);
210
-        $result = call_user_func_array(array(Cell::class,'buildRange'), $args);
210
+        $result = call_user_func_array(array(Cell::class, 'buildRange'), $args);
211 211
         $this->assertEquals($expectedResult, $result);
212 212
     }
213 213
 
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
     {
221 221
         $cellRange = '';
222 222
         try {
223
-            $result = call_user_func(array(Cell::class,'buildRange'), $cellRange);
223
+            $result = call_user_func(array(Cell::class, 'buildRange'), $cellRange);
224 224
         } catch (\Exception $e) {
225 225
             $this->assertInstanceOf(Exception::class, $e);
226 226
             $this->assertEquals($e->getMessage(), 'Range does not contain any information');
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
     {
237 237
         $args = func_get_args();
238 238
         $expectedResult = array_pop($args);
239
-        $result = call_user_func_array(array(Cell::class,'rangeBoundaries'), $args);
239
+        $result = call_user_func_array(array(Cell::class, 'rangeBoundaries'), $args);
240 240
         $this->assertEquals($expectedResult, $result);
241 241
     }
242 242
 
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
     {
253 253
         $args = func_get_args();
254 254
         $expectedResult = array_pop($args);
255
-        $result = call_user_func_array(array(Cell::class,'rangeDimension'), $args);
255
+        $result = call_user_func_array(array(Cell::class, 'rangeDimension'), $args);
256 256
         $this->assertEquals($expectedResult, $result);
257 257
     }
258 258
 
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
     {
269 269
         $args = func_get_args();
270 270
         $expectedResult = array_pop($args);
271
-        $result = call_user_func_array(array(Cell::class,'getRangeBoundaries'), $args);
271
+        $result = call_user_func_array(array(Cell::class, 'getRangeBoundaries'), $args);
272 272
         $this->assertEquals($expectedResult, $result);
273 273
     }
274 274
 
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
     {
285 285
         $args = func_get_args();
286 286
         $expectedResult = array_pop($args);
287
-        $result = call_user_func_array(array(Cell::class,'extractAllCellReferencesInRange'), $args);
287
+        $result = call_user_func_array(array(Cell::class, 'extractAllCellReferencesInRange'), $args);
288 288
         $this->assertEquals($expectedResult, $result);
289 289
     }
290 290
 
Please login to merge, or discard this patch.
tests/PhpSpreadsheet/Worksheet/WorksheetColumnTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
             ->disableOriginalConstructor()
14 14
             ->getMock();
15 15
         $this->mockWorksheet->expects($this->any())
16
-                 ->method('getHighestRow')
17
-                 ->will($this->returnValue(5));
16
+                    ->method('getHighestRow')
17
+                    ->will($this->returnValue(5));
18 18
     }
19 19
 
20 20
 
Please login to merge, or discard this patch.
tests/PhpSpreadsheet/Worksheet/ColumnIteratorTest.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
             ->getMock();
19 19
 
20 20
         $this->mockWorksheet->expects($this->any())
21
-                 ->method('getHighestColumn')
22
-                 ->will($this->returnValue('E'));
21
+                    ->method('getHighestColumn')
22
+                    ->will($this->returnValue('E'));
23 23
         $this->mockWorksheet->expects($this->any())
24
-                 ->method('current')
25
-                 ->will($this->returnValue($this->mockColumn));
24
+                    ->method('current')
25
+                    ->will($this->returnValue($this->mockColumn));
26 26
     }
27 27
 
28 28
 
Please login to merge, or discard this patch.
tests/PhpSpreadsheet/Worksheet/ColumnCellIteratorTest.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
             ->getMock();
19 19
 
20 20
         $this->mockWorksheet->expects($this->any())
21
-                 ->method('getHighestRow')
22
-                 ->will($this->returnValue(5));
21
+                    ->method('getHighestRow')
22
+                    ->will($this->returnValue(5));
23 23
         $this->mockWorksheet->expects($this->any())
24
-                 ->method('getCellByColumnAndRow')
25
-                 ->will($this->returnValue($this->mockCell));
24
+                    ->method('getCellByColumnAndRow')
25
+                    ->will($this->returnValue($this->mockCell));
26 26
     }
27 27
 
28 28
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         $iterator->seek(4);
58 58
         $this->assertEquals($columnIndexResult, $iterator->key());
59 59
 
60
-        for ($i = 1; $i < $columnIndexResult-1; $i++) {
60
+        for ($i = 1; $i < $columnIndexResult - 1; $i++) {
61 61
             $iterator->prev();
62 62
             $this->assertEquals($columnIndexResult - $i, $iterator->key());
63 63
         }
Please login to merge, or discard this patch.
tests/PhpSpreadsheet/Worksheet/AutoFilter/ColumnTest.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     {
112 112
         $attributeSet = array(    'val' => 100,
113 113
                                 'maxVal' => 200
114
-                             );
114
+                                );
115 115
 
116 116
         //    Setters return the instance to implement the fluent interface
117 117
         $result = $this->_testAutoFilterColumnObject->setAttributes($attributeSet);
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     {
123 123
         $attributeSet = array(    'val' => 100,
124 124
                                 'maxVal' => 200
125
-                             );
125
+                                );
126 126
 
127 127
         $this->_testAutoFilterColumnObject->setAttributes($attributeSet);
128 128
 
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
     {
136 136
         $attributeSet = array(    'val' => 100,
137 137
                                 'maxVal' => 200
138
-                             );
138
+                                );
139 139
 
140 140
         foreach ($attributeSet as $attributeName => $attributeValue) {
141 141
             //    Setters return the instance to implement the fluent interface
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
     {
149 149
         $attributeSet = array(    'val' => 100,
150 150
                                 'maxVal' => 200
151
-                             );
151
+                                );
152 152
 
153 153
         $this->_testAutoFilterColumnObject->setAttributes($attributeSet);
154 154
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 
110 110
     public function testSetAttributes()
111 111
     {
112
-        $attributeSet = array(    'val' => 100,
112
+        $attributeSet = array('val' => 100,
113 113
                                 'maxVal' => 200
114 114
                              );
115 115
 
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 
121 121
     public function testGetAttributes()
122 122
     {
123
-        $attributeSet = array(    'val' => 100,
123
+        $attributeSet = array('val' => 100,
124 124
                                 'maxVal' => 200
125 125
                              );
126 126
 
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 
134 134
     public function testSetAttribute()
135 135
     {
136
-        $attributeSet = array(    'val' => 100,
136
+        $attributeSet = array('val' => 100,
137 137
                                 'maxVal' => 200
138 138
                              );
139 139
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 
147 147
     public function testGetAttribute()
148 148
     {
149
-        $attributeSet = array(    'val' => 100,
149
+        $attributeSet = array('val' => 100,
150 150
                                 'maxVal' => 200
151 151
                              );
152 152
 
Please login to merge, or discard this patch.
tests/PhpSpreadsheet/Worksheet/RowIteratorTest.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
             ->getMock();
19 19
 
20 20
         $this->mockWorksheet->expects($this->any())
21
-                 ->method('getHighestRow')
22
-                 ->will($this->returnValue(5));
21
+                    ->method('getHighestRow')
22
+                    ->will($this->returnValue(5));
23 23
         $this->mockWorksheet->expects($this->any())
24
-                 ->method('current')
25
-                 ->will($this->returnValue($this->mockRow));
24
+                    ->method('current')
25
+                    ->will($this->returnValue($this->mockRow));
26 26
     }
27 27
 
28 28
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         $iterator->seek(4);
58 58
         $this->assertEquals($columnIndexResult, $iterator->key());
59 59
 
60
-        for ($i = 1; $i < $columnIndexResult-1; $i++) {
60
+        for ($i = 1; $i < $columnIndexResult - 1; $i++) {
61 61
             $iterator->prev();
62 62
             $this->assertEquals($columnIndexResult - $i, $iterator->key());
63 63
         }
Please login to merge, or discard this patch.
tests/PhpSpreadsheet/Worksheet/RowCellIteratorTest.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
             ->getMock();
19 19
 
20 20
         $this->mockWorksheet->expects($this->any())
21
-                 ->method('getHighestColumn')
22
-                 ->will($this->returnValue('E'));
21
+                    ->method('getHighestColumn')
22
+                    ->will($this->returnValue('E'));
23 23
         $this->mockWorksheet->expects($this->any())
24
-                 ->method('getCellByColumnAndRow')
25
-                 ->will($this->returnValue($this->mockCell));
24
+                    ->method('getCellByColumnAndRow')
25
+                    ->will($this->returnValue($this->mockCell));
26 26
     }
27 27
 
28 28
 
Please login to merge, or discard this patch.
tests/PhpSpreadsheet/Worksheet/WorksheetRowTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
             ->disableOriginalConstructor()
14 14
             ->getMock();
15 15
         $this->mockWorksheet->expects($this->any())
16
-                 ->method('getHighestColumn')
17
-                 ->will($this->returnValue('E'));
16
+                    ->method('getHighestColumn')
17
+                    ->will($this->returnValue('E'));
18 18
     }
19 19
 
20 20
 
Please login to merge, or discard this patch.