Completed
Push — develop ( 467bab...e1f81f )
by Adrien
10:03
created
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.
tests/PhpSpreadsheet/ReferenceHelperTest.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -14,19 +14,19 @@  discard block
 block discarded – undo
14 14
     public function testColumnSort()
15 15
     {
16 16
         $columnBase = $columnExpectedResult = [
17
-            'A','B','Z',
18
-            'AA','AB','AZ',
19
-            'BA','BB','BZ',
20
-            'ZA','ZB','ZZ',
21
-            'AAA','AAB','AAZ',
22
-            'ABA','ABB','ABZ',
23
-            'AZA','AZB','AZZ',
24
-            'BAA','BAB','BAZ',
25
-            'BBA','BBB','BBZ',
26
-            'BZA','BZB','BZZ'
17
+            'A', 'B', 'Z',
18
+            'AA', 'AB', 'AZ',
19
+            'BA', 'BB', 'BZ',
20
+            'ZA', 'ZB', 'ZZ',
21
+            'AAA', 'AAB', 'AAZ',
22
+            'ABA', 'ABB', 'ABZ',
23
+            'AZA', 'AZB', 'AZZ',
24
+            'BAA', 'BAB', 'BAZ',
25
+            'BBA', 'BBB', 'BBZ',
26
+            'BZA', 'BZB', 'BZZ'
27 27
         ];
28 28
         shuffle($columnBase);
29
-        usort($columnBase, array(ReferenceHelper::class,'columnSort'));
29
+        usort($columnBase, array(ReferenceHelper::class, 'columnSort'));
30 30
         foreach ($columnBase as $key => $value) {
31 31
             $this->assertEquals($columnExpectedResult[$key], $value);
32 32
         }
@@ -35,20 +35,20 @@  discard block
 block discarded – undo
35 35
     public function testColumnReverseSort()
36 36
     {
37 37
         $columnBase = $columnExpectedResult = [
38
-            'A','B','Z',
39
-            'AA','AB','AZ',
40
-            'BA','BB','BZ',
41
-            'ZA','ZB','ZZ',
42
-            'AAA','AAB','AAZ',
43
-            'ABA','ABB','ABZ',
44
-            'AZA','AZB','AZZ',
45
-            'BAA','BAB','BAZ',
46
-            'BBA','BBB','BBZ',
47
-            'BZA','BZB','BZZ'
38
+            'A', 'B', 'Z',
39
+            'AA', 'AB', 'AZ',
40
+            'BA', 'BB', 'BZ',
41
+            'ZA', 'ZB', 'ZZ',
42
+            'AAA', 'AAB', 'AAZ',
43
+            'ABA', 'ABB', 'ABZ',
44
+            'AZA', 'AZB', 'AZZ',
45
+            'BAA', 'BAB', 'BAZ',
46
+            'BBA', 'BBB', 'BBZ',
47
+            'BZA', 'BZB', 'BZZ'
48 48
         ];
49 49
         shuffle($columnBase);
50 50
         $columnExpectedResult = array_reverse($columnExpectedResult);
51
-        usort($columnBase, array(ReferenceHelper::class,'columnReverseSort'));
51
+        usort($columnBase, array(ReferenceHelper::class, 'columnReverseSort'));
52 52
         foreach ($columnBase as $key => $value) {
53 53
             $this->assertEquals($columnExpectedResult[$key], $value);
54 54
         }
Please login to merge, or discard this patch.