@@ -34,13 +34,13 @@ |
||
34 | 34 | echo 'Reading the number of Worksheets in the WorkBook<br />'; |
35 | 35 | /* Use the PhpSpreadsheet object's getSheetCount() method to get a count of the number of WorkSheets in the WorkBook */ |
36 | 36 | $sheetCount = $spreadsheet->getSheetCount(); |
37 | -echo 'There ',(($sheetCount == 1) ? 'is' : 'are'),' ',$sheetCount,' WorkSheet',(($sheetCount == 1) ? '' : 's'),' in the WorkBook<br /><br />'; |
|
37 | +echo 'There ', (($sheetCount == 1) ? 'is' : 'are'), ' ', $sheetCount, ' WorkSheet', (($sheetCount == 1) ? '' : 's'), ' in the WorkBook<br /><br />'; |
|
38 | 38 | |
39 | 39 | echo 'Reading the names of Worksheets in the WorkBook<br />'; |
40 | 40 | /* Use the PhpSpreadsheet object's getSheetNames() method to get an array listing the names/titles of the WorkSheets in the WorkBook */ |
41 | 41 | $sheetNames = $spreadsheet->getSheetNames(); |
42 | 42 | foreach ($sheetNames as $sheetIndex => $sheetName) { |
43 | - echo 'WorkSheet #',$sheetIndex,' is named "',$sheetName,'"<br />'; |
|
43 | + echo 'WorkSheet #', $sheetIndex, ' is named "', $sheetName, '"<br />'; |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | ?> |
@@ -22,7 +22,7 @@ |
||
22 | 22 | require_once __DIR__ . '/../../../src/Bootstrap.php'; |
23 | 23 | |
24 | 24 | $inputFileName = './sampleData/example_1.xls'; |
25 | -echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' using IOFactory to identify the format<br />'; |
|
25 | +echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' using IOFactory to identify the format<br />'; |
|
26 | 26 | try { |
27 | 27 | $spreadsheet = \PhpOffice\PhpSpreadsheet\IOFactory::load($inputFileName); |
28 | 28 | } catch (\InvalidArgumentException $e) { |
@@ -68,7 +68,7 @@ |
||
68 | 68 | /* Tell the Reader that we want to use the Read Filter that we've Instantiated **/ |
69 | 69 | /* and that we want to store it in contiguous rows/columns **/ |
70 | 70 | $reader->setReadFilter($chunkFilter) |
71 | - ->setContiguous(true); |
|
71 | + ->setContiguous(true); |
|
72 | 72 | |
73 | 73 | /* Instantiate a new PhpSpreadsheet object manually **/ |
74 | 74 | $spreadsheet = new \PhpOffice\PhpSpreadsheet\Spreadsheet(); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | require_once __DIR__ . '/../../../src/Bootstrap.php'; |
23 | 23 | |
24 | 24 | $inputFileName = './sampleData/example1.xls'; |
25 | -echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' using IOFactory to identify the format<br />'; |
|
25 | +echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' using IOFactory to identify the format<br />'; |
|
26 | 26 | $spreadsheet = \PhpOffice\PhpSpreadsheet\IOFactory::load($inputFileName); |
27 | 27 | |
28 | 28 | echo '<hr />'; |