Completed
Push — develop ( bf3457...467bab )
by
unknown
09:08
created
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/ColumnCellIteratorTest.php 1 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 1 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 1 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/AutoFilterTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 
204 204
     public function testGetColumns()
205 205
     {
206
-        $columnIndexes = ['L','M'];
206
+        $columnIndexes = ['L', 'M'];
207 207
 
208 208
         foreach ($columnIndexes as $columnIndex) {
209 209
             $this->testAutoFilterObject->setColumn($columnIndex);
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
 
223 223
     public function testGetColumn()
224 224
     {
225
-        $columnIndexes = array('L','M');
225
+        $columnIndexes = array('L', 'M');
226 226
 
227 227
         foreach ($columnIndexes as $columnIndex) {
228 228
             $this->testAutoFilterObject->setColumn($columnIndex);
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
     {
276 276
         $expectedResult = '';
277 277
 
278
-        $columnIndexes = ['L','M','N'];
278
+        $columnIndexes = ['L', 'M', 'N'];
279 279
         foreach ($columnIndexes as $columnIndex) {
280 280
             $this->testAutoFilterObject->setColumn($columnIndex);
281 281
         }
@@ -299,12 +299,12 @@  discard block
 block discarded – undo
299 299
         $expectedResult = 'G1:J512';
300 300
 
301 301
         //  These columns should be retained
302
-        $columnIndexes1 = ['I','J'];
302
+        $columnIndexes1 = ['I', 'J'];
303 303
         foreach ($columnIndexes1 as $columnIndex) {
304 304
             $this->testAutoFilterObject->setColumn($columnIndex);
305 305
         }
306 306
         //  These columns should be discarded
307
-        $columnIndexes2 = ['K','L','M'];
307
+        $columnIndexes2 = ['K', 'L', 'M'];
308 308
         foreach ($columnIndexes2 as $columnIndex) {
309 309
             $this->testAutoFilterObject->setColumn($columnIndex);
310 310
         }
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
 
327 327
     public function testClone()
328 328
     {
329
-        $columnIndexes = ['L','M'];
329
+        $columnIndexes = ['L', 'M'];
330 330
 
331 331
         foreach ($columnIndexes as $columnIndex) {
332 332
             $this->testAutoFilterObject->setColumn($columnIndex);
Please login to merge, or discard this patch.
tests/PhpSpreadsheet/Cell/DefaultValueBinderTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     public function testDataTypeForValue()
67 67
     {
68 68
         list($args, $expectedResult) = func_get_args();
69
-        $result = call_user_func_array(array(DefaultValueBinder::class,'dataTypeForValue'), $args);
69
+        $result = call_user_func_array(array(DefaultValueBinder::class, 'dataTypeForValue'), $args);
70 70
         $this->assertEquals($expectedResult, $result);
71 71
     }
72 72
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         $objRichText->createText('Hello World');
82 82
 
83 83
         $expectedResult = DataType::TYPE_INLINE;
84
-        $result = call_user_func(array(DefaultValueBinder::class,'dataTypeForValue'), $objRichText);
84
+        $result = call_user_func(array(DefaultValueBinder::class, 'dataTypeForValue'), $objRichText);
85 85
         $this->assertEquals($expectedResult, $result);
86 86
     }
87 87
 }
Please login to merge, or discard this patch.
tests/PhpSpreadsheet/Cell/AdvancedValueBinderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     {
40 40
         $sheet = $this->getMock(
41 41
             '\\PHPExcel\\Worksheet',
42
-            array('getStyle', 'getNumberFormat', 'setFormatCode','getCellCacheController')
42
+            array('getStyle', 'getNumberFormat', 'setFormatCode', 'getCellCacheController')
43 43
         );
44 44
         $cache = $this->getMockBuilder('\\PHPExcel\\CachedObjectStorage\\Memory')
45 45
             ->disableOriginalConstructor()
Please login to merge, or discard this patch.
tests/PhpSpreadsheet/Cell/DataTypeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
     public function testGetErrorCodes()
19 19
     {
20
-        $result = call_user_func(array(DataType::class,'getErrorCodes'));
20
+        $result = call_user_func(array(DataType::class, 'getErrorCodes'));
21 21
         $this->assertInternalType('array', $result);
22 22
         $this->assertGreaterThan(0, count($result));
23 23
         $this->assertArrayHasKey('#NULL!', $result);
Please login to merge, or discard this patch.
tests/PhpSpreadsheet/SettingsTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function testGetXMLSettings()
15 15
     {
16
-        $result = call_user_func(array('PHPExcel\\Settings','getLibXmlLoaderOptions'));
16
+        $result = call_user_func(array('PHPExcel\\Settings', 'getLibXmlLoaderOptions'));
17 17
         $this->assertTrue((bool) ((LIBXML_DTDLOAD | LIBXML_DTDATTR) & $result));
18 18
     }
19 19
 
@@ -21,8 +21,8 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function testSetXMLSettings()
23 23
     {
24
-        call_user_func_array(array('PHPExcel\\Settings','setLibXmlLoaderOptions'), [LIBXML_DTDLOAD | LIBXML_DTDATTR | LIBXML_DTDVALID]);
25
-        $result = call_user_func(array('PHPExcel\\Settings','getLibXmlLoaderOptions'));
24
+        call_user_func_array(array('PHPExcel\\Settings', 'setLibXmlLoaderOptions'), [LIBXML_DTDLOAD | LIBXML_DTDATTR | LIBXML_DTDVALID]);
25
+        $result = call_user_func(array('PHPExcel\\Settings', 'getLibXmlLoaderOptions'));
26 26
         $this->assertTrue((bool) ((LIBXML_DTDLOAD | LIBXML_DTDATTR | LIBXML_DTDVALID) & $result));
27 27
     }
28 28
 
Please login to merge, or discard this patch.