Completed
Push — develop ( e6bbc4...3851aa )
by Adrien
23:49
created
docs/Examples/Reader/exampleReader14.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     }
49 49
 }
50 50
 
51
-echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' using IOFactory with a defined reader type of ',$inputFileType,'<br />';
51
+echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' using IOFactory with a defined reader type of ', $inputFileType, '<br />';
52 52
 /*  Create a new Reader of the type defined in $inputFileType  **/
53 53
 $objReader = PHPExcel_IOFactory::createReader($inputFileType);
54 54
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 /*  Loop to read our worksheet in "chunk size" blocks  **/
73 73
 /**  $startRow is set to 2 initially because we always read the headings in row #1  **/
74 74
 for ($startRow = 2; $startRow <= 240; $startRow += $chunkSize) {
75
-    echo 'Loading WorkSheet #',($sheet + 1),' using configurable filter for headings row 1 and for rows ',$startRow,' to ',($startRow + $chunkSize - 1),'<br />';
75
+    echo 'Loading WorkSheet #', ($sheet + 1), ' using configurable filter for headings row 1 and for rows ', $startRow, ' to ', ($startRow + $chunkSize - 1), '<br />';
76 76
     /*  Tell the Read Filter, the limits on which rows we want to read this iteration  **/
77 77
     $chunkFilter->setRows($startRow, $chunkSize);
78 78
 
@@ -87,10 +87,10 @@  discard block
 block discarded – undo
87 87
 
88 88
 echo '<hr />';
89 89
 
90
-echo $objPHPExcel->getSheetCount(),' worksheet',(($objPHPExcel->getSheetCount() == 1) ? '' : 's'),' loaded<br /><br />';
90
+echo $objPHPExcel->getSheetCount(), ' worksheet', (($objPHPExcel->getSheetCount() == 1) ? '' : 's'), ' loaded<br /><br />';
91 91
 $loadedSheetNames = $objPHPExcel->getSheetNames();
92 92
 foreach ($loadedSheetNames as $sheetIndex => $loadedSheetName) {
93
-    echo '<b>Worksheet #',$sheetIndex,' -> ',$loadedSheetName,'</b><br />';
93
+    echo '<b>Worksheet #', $sheetIndex, ' -> ', $loadedSheetName, '</b><br />';
94 94
     $objPHPExcel->setActiveSheetIndexByName($loadedSheetName);
95 95
     $sheetData = $objPHPExcel->getActiveSheet()->toArray(null, false, false, true);
96 96
     var_dump($sheetData);
Please login to merge, or discard this patch.
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/exampleReader06.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 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 'Loading all WorkSheets<br />';
38 38
 $objReader->setLoadAllSheets();
@@ -40,10 +40,10 @@  discard block
 block discarded – undo
40 40
 
41 41
 echo '<hr />';
42 42
 
43
-echo $objPHPExcel->getSheetCount(),' worksheet',(($objPHPExcel->getSheetCount() == 1) ? '' : 's'),' loaded<br /><br />';
43
+echo $objPHPExcel->getSheetCount(), ' worksheet', (($objPHPExcel->getSheetCount() == 1) ? '' : 's'), ' loaded<br /><br />';
44 44
 $loadedSheetNames = $objPHPExcel->getSheetNames();
45 45
 foreach ($loadedSheetNames as $sheetIndex => $loadedSheetName) {
46
-    echo $sheetIndex,' -> ',$loadedSheetName,'<br />';
46
+    echo $sheetIndex, ' -> ', $loadedSheetName, '<br />';
47 47
 }
48 48
 
49 49
 ?>
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/Reader/exampleReader15.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,17 +26,17 @@  discard block
 block discarded – undo
26 26
 $inputFileName = './sampleData/example1.tsv';
27 27
 
28 28
 $objReader = PHPExcel_IOFactory::createReader($inputFileType);
29
-echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' into WorkSheet #1 using IOFactory with a defined reader type of ',$inputFileType,'<br />';
29
+echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' into WorkSheet #1 using IOFactory with a defined reader type of ', $inputFileType, '<br />';
30 30
 $objReader->setDelimiter("\t");
31 31
 $objPHPExcel = $objReader->load($inputFileName);
32 32
 $objPHPExcel->getActiveSheet()->setTitle(pathinfo($inputFileName, PATHINFO_BASENAME));
33 33
 
34 34
 echo '<hr />';
35 35
 
36
-echo $objPHPExcel->getSheetCount(),' worksheet',(($objPHPExcel->getSheetCount() == 1) ? '' : 's'),' loaded<br /><br />';
36
+echo $objPHPExcel->getSheetCount(), ' worksheet', (($objPHPExcel->getSheetCount() == 1) ? '' : 's'), ' loaded<br /><br />';
37 37
 $loadedSheetNames = $objPHPExcel->getSheetNames();
38 38
 foreach ($loadedSheetNames as $sheetIndex => $loadedSheetName) {
39
-    echo '<b>Worksheet #',$sheetIndex,' -> ',$loadedSheetName,' (Formatted)</b><br />';
39
+    echo '<b>Worksheet #', $sheetIndex, ' -> ', $loadedSheetName, ' (Formatted)</b><br />';
40 40
     $objPHPExcel->setActiveSheetIndexByName($loadedSheetName);
41 41
     $sheetData = $objPHPExcel->getActiveSheet()->toArray(null, true, true, true);
42 42
     var_dump($sheetData);
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 echo '<hr />';
47 47
 
48 48
 foreach ($loadedSheetNames as $sheetIndex => $loadedSheetName) {
49
-    echo '<b>Worksheet #',$sheetIndex,' -> ',$loadedSheetName,' (Unformatted)</b><br />';
49
+    echo '<b>Worksheet #', $sheetIndex, ' -> ', $loadedSheetName, ' (Unformatted)</b><br />';
50 50
     $objPHPExcel->setActiveSheetIndexByName($loadedSheetName);
51 51
     $sheetData = $objPHPExcel->getActiveSheet()->toArray(null, true, false, true);
52 52
     var_dump($sheetData);
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 echo '<hr />';
57 57
 
58 58
 foreach ($loadedSheetNames as $sheetIndex => $loadedSheetName) {
59
-    echo '<b>Worksheet #',$sheetIndex,' -> ',$loadedSheetName,' (Raw)</b><br />';
59
+    echo '<b>Worksheet #', $sheetIndex, ' -> ', $loadedSheetName, ' (Raw)</b><br />';
60 60
     $objPHPExcel->setActiveSheetIndexByName($loadedSheetName);
61 61
     $sheetData = $objPHPExcel->getActiveSheet()->toArray(null, false, false, true);
62 62
     var_dump($sheetData);
Please login to merge, or discard this patch.