Completed
Branch develop (d19f73)
by Adrien
09:49
created
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.
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 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@
 block discarded – undo
24 24
             ->getMock();
25 25
         // Configure the stub.
26 26
         $this->cellStub->expects($this->any())
27
-             ->method('setValueExplicit')
28
-             ->will($this->returnValue(true));
27
+                ->method('setValueExplicit')
28
+                ->will($this->returnValue(true));
29 29
 
30 30
     }
31 31
 
Please login to merge, or discard this 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 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -45,22 +45,22 @@
 block discarded – undo
45 45
             ->disableOriginalConstructor()
46 46
             ->getMock();
47 47
         $cache->expects($this->any())
48
-                 ->method('getParent')
49
-                 ->will($this->returnValue($sheet));
48
+                    ->method('getParent')
49
+                    ->will($this->returnValue($sheet));
50 50
 
51 51
         $sheet->expects($this->once())
52
-                 ->method('getStyle')
53
-                 ->will($this->returnSelf());
52
+                    ->method('getStyle')
53
+                    ->will($this->returnSelf());
54 54
         $sheet->expects($this->once())
55
-                 ->method('getNumberFormat')
56
-                 ->will($this->returnSelf());
55
+                    ->method('getNumberFormat')
56
+                    ->will($this->returnSelf());
57 57
         $sheet->expects($this->once())
58
-                 ->method('setFormatCode')
59
-                 ->with($format)
60
-                 ->will($this->returnSelf());
58
+                    ->method('setFormatCode')
59
+                    ->with($format)
60
+                    ->will($this->returnSelf());
61 61
         $sheet->expects($this->any())
62
-                 ->method('getCellCacheController')
63
-                 ->will($this->returnValue($cache));
62
+                    ->method('getCellCacheController')
63
+                    ->will($this->returnValue($cache));
64 64
 
65 65
         \PHPExcel\Shared\StringHelper::setCurrencyCode($currencyCode);
66 66
         \PHPExcel\Shared\StringHelper::setDecimalSeparator($decimalSeparator);
Please login to merge, or discard this 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.