Completed
Push — develop ( c1f5bd...b96478 )
by Adrien
23:38 queued 12:24
created
docs/Examples/Reader/exampleReader11.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     }
58 58
 }
59 59
 
60
-echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' using IOFactory with a defined reader type of ',$inputFileType,'<br />';
60
+echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' using IOFactory with a defined reader type of ', $inputFileType, '<br />';
61 61
 /*  Create a new Reader of the type defined in $inputFileType  **/
62 62
 $objReader = PHPExcel_IOFactory::createReader($inputFileType);
63 63
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
 /*  Loop to read our worksheet in "chunk size" blocks  **/
75 75
 for ($startRow = 2; $startRow <= 240; $startRow += $chunkSize) {
76
-    echo 'Loading WorkSheet using configurable filter for headings row 1 and for rows ',$startRow,' to ',($startRow + $chunkSize - 1),'<br />';
76
+    echo 'Loading WorkSheet using configurable filter for headings row 1 and for rows ', $startRow, ' to ', ($startRow + $chunkSize - 1), '<br />';
77 77
     /*  Tell the Read Filter, the limits on which rows we want to read this iteration  **/
78 78
     $chunkFilter->setRows($startRow, $chunkSize);
79 79
     /*  Load only the rows that match our filter from $inputFileName to a PHPExcel Object  **/
Please login to merge, or discard this patch.
docs/Examples/Reader/exampleReader19.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 //	$inputFileType = 'Gnumeric';
33 33
 $inputFileName = './sampleData/example1.xls';
34 34
 
35
-echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' information using IOFactory with a defined reader type of ',$inputFileType,'<br />';
35
+echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' information using IOFactory with a defined reader type of ', $inputFileType, '<br />';
36 36
 
37 37
 $objReader = PHPExcel_IOFactory::createReader($inputFileType);
38 38
 $worksheetData = $objReader->listWorksheetInfo($inputFileName);
Please login to merge, or discard this patch.
docs/Examples/Reader/exampleReader12.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     }
58 58
 }
59 59
 
60
-echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' using IOFactory with a defined reader type of ',$inputFileType,'<br />';
60
+echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' using IOFactory with a defined reader type of ', $inputFileType, '<br />';
61 61
 /*  Create a new Reader of the type defined in $inputFileType  **/
62 62
 $objReader = PHPExcel_IOFactory::createReader($inputFileType);
63 63
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
 /*  Loop to read our worksheet in "chunk size" blocks  **/
75 75
 for ($startRow = 2; $startRow <= 240; $startRow += $chunkSize) {
76
-    echo 'Loading WorkSheet using configurable filter for headings row 1 and for rows ',$startRow,' to ',($startRow + $chunkSize - 1),'<br />';
76
+    echo 'Loading WorkSheet using configurable filter for headings row 1 and for rows ', $startRow, ' to ', ($startRow + $chunkSize - 1), '<br />';
77 77
     /*  Tell the Read Filter, the limits on which rows we want to read this iteration  **/
78 78
     $chunkFilter->setRows($startRow, $chunkSize);
79 79
     /*  Load only the rows that match our filter from $inputFileName to a PHPExcel Object  **/
Please login to merge, or discard this patch.
docs/Examples/Reader/exampleReader09.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,9 +62,9 @@
 block discarded – undo
62 62
 
63 63
 $filterSubset = new MyReadFilter(9, 15, range('G', 'K'));
64 64
 
65
-echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' using IOFactory with a defined reader type of ',$inputFileType,'<br />';
65
+echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' using IOFactory with a defined reader type of ', $inputFileType, '<br />';
66 66
 $objReader = PHPExcel_IOFactory::createReader($inputFileType);
67
-echo 'Loading Sheet "',$sheetname,'" only<br />';
67
+echo 'Loading Sheet "', $sheetname, '" only<br />';
68 68
 $objReader->setLoadSheetsOnly($sheetname);
69 69
 echo 'Loading Sheet using configurable filter<br />';
70 70
 $objReader->setReadFilter($filterSubset);
Please login to merge, or discard this patch.
docs/Examples/Reader/exampleReader05.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 //	$inputFileType = 'Gnumeric';
33 33
 $inputFileName = './sampleData/example1.xls';
34 34
 
35
-echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' using IOFactory with a defined reader type of ',$inputFileType,'<br />';
35
+echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' using IOFactory with a defined reader type of ', $inputFileType, '<br />';
36 36
 $objReader = PHPExcel_IOFactory::createReader($inputFileType);
37 37
 echo 'Turning Formatting off for Load<br />';
38 38
 $objReader->setReadDataOnly(true);
Please login to merge, or discard this patch.
docs/Examples/Reader/exampleReader17.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,16 +32,16 @@
 block discarded – undo
32 32
 //	$inputFileType = 'Gnumeric';
33 33
 $inputFileName = './sampleData/example1.xls';
34 34
 
35
-echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' using IOFactory with a defined reader type of ',$inputFileType,'<br />';
35
+echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' using IOFactory with a defined reader type of ', $inputFileType, '<br />';
36 36
 $objReader = PHPExcel_IOFactory::createReader($inputFileType);
37 37
 
38 38
 /*  Read the list of Worksheet Names from the Workbook file  **/
39 39
 echo 'Read the list of Worksheets in the WorkBook<br />';
40 40
 $worksheetNames = $objReader->listWorksheetNames($inputFileName);
41 41
 
42
-echo 'There are ',count($worksheetNames),' worksheet',((count($worksheetNames) == 1) ? '' : 's'),' in the workbook<br /><br />';
42
+echo 'There are ', count($worksheetNames), ' worksheet', ((count($worksheetNames) == 1) ? '' : 's'), ' in the workbook<br /><br />';
43 43
 foreach ($worksheetNames as $worksheetName) {
44
-    echo $worksheetName,'<br />';
44
+    echo $worksheetName, '<br />';
45 45
 }
46 46
 
47 47
 ?>
Please login to merge, or discard this patch.
docs/Examples/Calculations/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,10 +34,10 @@
 block discarded – undo
34 34
             $h1Text = $out[1];
35 35
             $h2Text = (preg_match($h2Pattern, $fileData, $out)) ? $out[1] : '';
36 36
 
37
-            echo '<a href="',$exampleFile,'">',$h1Text,'</a><br />';
37
+            echo '<a href="', $exampleFile, '">', $h1Text, '</a><br />';
38 38
             if (($h2Text > '') &&
39 39
                 (pathinfo($exampleType, PATHINFO_BASENAME) != 'Calculations')) {
40
-                echo $h2Text,'<br />';
40
+                echo $h2Text, '<br />';
41 41
             }
42 42
         }
43 43
     }
Please login to merge, or discard this patch.
docs/Examples/Calculations/DateTime/TIME.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@  discard block
 block discarded – undo
30 30
 $worksheet = $objPHPExcel->getActiveSheet();
31 31
 
32 32
 // Add some data
33
-$testDates = [[3, 15],        [13, 15],    [15, 15, 15],    [3, 15, 30],
34
-                    [15, 15, 15],    [5],        [9, 15, 0],        [9, 15, -1],
35
-                    [13, -14, -15],    [0, 0, -1],
33
+$testDates = [[3, 15], [13, 15], [15, 15, 15], [3, 15, 30],
34
+                    [15, 15, 15], [5], [9, 15, 0], [9, 15, -1],
35
+                    [13, -14, -15], [0, 0, -1],
36 36
                   ];
37 37
 $testDateCount = count($testDates);
38 38
 
@@ -65,12 +65,12 @@  discard block
 block discarded – undo
65 65
 	<?php
66 66
     for ($row = 1; $row <= $testDateCount; ++$row) {
67 67
         echo '<tr>';
68
-        echo '<td>' , $worksheet->getCell('A' . $row)->getFormattedValue() , '</td>';
69
-        echo '<td>' , $worksheet->getCell('B' . $row)->getFormattedValue() , '</td>';
70
-        echo '<td>' , $worksheet->getCell('C' . $row)->getFormattedValue() , '</td>';
71
-        echo '<td>' , $worksheet->getCell('D' . $row)->getValue() , '</td>';
72
-        echo '<td>' , $worksheet->getCell('D' . $row)->getFormattedValue() , '</td>';
73
-        echo '<td>' , $worksheet->getCell('E' . $row)->getFormattedValue() , '</td>';
68
+        echo '<td>', $worksheet->getCell('A' . $row)->getFormattedValue(), '</td>';
69
+        echo '<td>', $worksheet->getCell('B' . $row)->getFormattedValue(), '</td>';
70
+        echo '<td>', $worksheet->getCell('C' . $row)->getFormattedValue(), '</td>';
71
+        echo '<td>', $worksheet->getCell('D' . $row)->getValue(), '</td>';
72
+        echo '<td>', $worksheet->getCell('D' . $row)->getFormattedValue(), '</td>';
73
+        echo '<td>', $worksheet->getCell('E' . $row)->getFormattedValue(), '</td>';
74 74
         echo '</tr>';
75 75
     }
76 76
     ?>
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
 // Add some data
33 33
 $testDates = ['3:15',    '13:15',    '15:15:15',    '3:15 AM',    '3:15 PM',    '5PM',    '9:15AM',    '13:15AM',
34
-                  ];
34
+                    ];
35 35
 $testDateCount = count($testDates);
36 36
 
37 37
 for ($row = 1; $row <= $testDateCount; ++$row) {
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
 }
42 42
 
43 43
 $worksheet->getStyle('C1:C' . $testDateCount)
44
-          ->getNumberFormat()
45
-          ->setFormatCode('hh:mm:ss');
44
+            ->getNumberFormat()
45
+            ->setFormatCode('hh:mm:ss');
46 46
 
47 47
 echo '<hr />';
48 48
 
Please login to merge, or discard this patch.
docs/Examples/Calculations/DateTime/DATEVALUE.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -30,10 +30,10 @@  discard block
 block discarded – undo
30 30
 $worksheet = $objPHPExcel->getActiveSheet();
31 31
 
32 32
 // Add some data
33
-$testDates = ['26 March 2012',    '29 Feb 2012',    'April 1, 2012',    '25/12/2012',
34
-                    '2012-Oct-31',        '5th November',    'January 1st',        'April 2012',
35
-                    '17-03',            '03-2012',        '29 Feb 2011',        '03-05-07',
36
-                    '03-MAY-07',        '03-13-07',
33
+$testDates = ['26 March 2012', '29 Feb 2012', 'April 1, 2012', '25/12/2012',
34
+                    '2012-Oct-31', '5th November', 'January 1st', 'April 2012',
35
+                    '17-03', '03-2012', '29 Feb 2011', '03-05-07',
36
+                    '03-MAY-07', '03-13-07',
37 37
                   ];
38 38
 $testDateCount = count($testDates);
39 39
 
@@ -62,10 +62,10 @@  discard block
 block discarded – undo
62 62
 	<?php
63 63
     for ($row = 1; $row <= $testDateCount; ++$row) {
64 64
         echo '<tr>';
65
-        echo '<td>' , $worksheet->getCell('A' . $row)->getFormattedValue() , '</td>';
66
-        echo '<td>' , $worksheet->getCell('B' . $row)->getValue() , '</td>';
67
-        echo '<td>' , $worksheet->getCell('B' . $row)->getFormattedValue() , '</td>';
68
-        echo '<td>' , $worksheet->getCell('C' . $row)->getFormattedValue() , '</td>';
65
+        echo '<td>', $worksheet->getCell('A' . $row)->getFormattedValue(), '</td>';
66
+        echo '<td>', $worksheet->getCell('B' . $row)->getValue(), '</td>';
67
+        echo '<td>', $worksheet->getCell('B' . $row)->getFormattedValue(), '</td>';
68
+        echo '<td>', $worksheet->getCell('C' . $row)->getFormattedValue(), '</td>';
69 69
         echo '</tr>';
70 70
     }
71 71
     ?>
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
                     [2011, 2, 29],    [7, 5, 3],        [2012, 13, 1],    [2012, 11, 45],
36 36
                     [2012, 0, 0],    [2012, 1, 0],    [2012, 0, 1],
37 37
                     [2012, -2, 2],    [2012, 2, -2],    [2012, -2, -2],
38
-                  ];
38
+                    ];
39 39
 $testDateCount = count($testDates);
40 40
 
41 41
 $worksheet->fromArray($testDates, null, 'A1', true);
@@ -45,8 +45,8 @@  discard block
 block discarded – undo
45 45
     $worksheet->setCellValue('E' . $row, '=D' . $row);
46 46
 }
47 47
 $worksheet->getStyle('E1:E' . $testDateCount)
48
-          ->getNumberFormat()
49
-          ->setFormatCode('yyyy-mmm-dd');
48
+            ->getNumberFormat()
49
+            ->setFormatCode('yyyy-mmm-dd');
50 50
 
51 51
 echo '<hr />';
52 52
 
Please login to merge, or discard this patch.