@@ -30,11 +30,11 @@ discard block |
||
30 | 30 | |
31 | 31 | $objReader = \PhpOffice\PhpSpreadsheet\IOFactory::createReader($inputFileType); |
32 | 32 | $inputFileName = array_shift($inputFileNames); |
33 | -echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' into WorkSheet #1 using IOFactory with a defined reader type of ',$inputFileType,'<br />'; |
|
33 | +echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' into WorkSheet #1 using IOFactory with a defined reader type of ', $inputFileType, '<br />'; |
|
34 | 34 | $spreadsheet = $objReader->load($inputFileName); |
35 | 35 | $spreadsheet->getActiveSheet()->setTitle(pathinfo($inputFileName, PATHINFO_BASENAME)); |
36 | 36 | foreach ($inputFileNames as $sheet => $inputFileName) { |
37 | - echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' into WorkSheet #',($sheet + 2),' using IOFactory with a defined reader type of ',$inputFileType,'<br />'; |
|
37 | + echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' into WorkSheet #', ($sheet + 2), ' using IOFactory with a defined reader type of ', $inputFileType, '<br />'; |
|
38 | 38 | $objReader->setSheetIndex($sheet + 1); |
39 | 39 | $objReader->loadIntoExisting($inputFileName, $spreadsheet); |
40 | 40 | $spreadsheet->getActiveSheet()->setTitle(pathinfo($inputFileName, PATHINFO_BASENAME)); |
@@ -42,10 +42,10 @@ discard block |
||
42 | 42 | |
43 | 43 | echo '<hr />'; |
44 | 44 | |
45 | -echo $spreadsheet->getSheetCount(),' worksheet',(($spreadsheet->getSheetCount() == 1) ? '' : 's'),' loaded<br /><br />'; |
|
45 | +echo $spreadsheet->getSheetCount(), ' worksheet', (($spreadsheet->getSheetCount() == 1) ? '' : 's'), ' loaded<br /><br />'; |
|
46 | 46 | $loadedSheetNames = $spreadsheet->getSheetNames(); |
47 | 47 | foreach ($loadedSheetNames as $sheetIndex => $loadedSheetName) { |
48 | - echo '<b>Worksheet #',$sheetIndex,' -> ',$loadedSheetName,'</b><br />'; |
|
48 | + echo '<b>Worksheet #', $sheetIndex, ' -> ', $loadedSheetName, '</b><br />'; |
|
49 | 49 | $spreadsheet->setActiveSheetIndexByName($loadedSheetName); |
50 | 50 | $sheetData = $spreadsheet->getActiveSheet()->toArray(null, true, true, true); |
51 | 51 | var_dump($sheetData); |
@@ -3115,7 +3115,7 @@ |
||
3115 | 3115 | // The guts of the lexical parser |
3116 | 3116 | // Loop through the formula extracting each operator and operand in turn |
3117 | 3117 | while (true) { |
3118 | - $opCharacter = $formula[$index]; // Get the first character of the value at the current index position |
|
3118 | + $opCharacter = $formula[$index]; // Get the first character of the value at the current index position |
|
3119 | 3119 | if ((isset(self::$comparisonOperators[$opCharacter])) && (strlen($formula) > $index) && (isset(self::$comparisonOperators[$formula[$index + 1]]))) { |
3120 | 3120 | $opCharacter .= $formula[++$index]; |
3121 | 3121 | } |