@@ 463-480 (lines=18) @@ | ||
460 | $this->sheets = []; |
|
461 | ||
462 | // Parse Workbook Global Substream |
|
463 | while ($this->pos < $this->dataSize) { |
|
464 | $code = self::getInt2d($this->data, $this->pos); |
|
465 | ||
466 | switch ($code) { |
|
467 | case self::XLS_TYPE_BOF: |
|
468 | $this->readBof(); |
|
469 | break; |
|
470 | case self::XLS_TYPE_SHEET: |
|
471 | $this->readSheet(); |
|
472 | break; |
|
473 | case self::XLS_TYPE_EOF: |
|
474 | $this->readDefault(); |
|
475 | break 2; |
|
476 | default: |
|
477 | $this->readDefault(); |
|
478 | break; |
|
479 | } |
|
480 | } |
|
481 | ||
482 | foreach ($this->sheets as $sheet) { |
|
483 | if ($sheet['sheetType'] != 0x00) { |
|
@@ 518-535 (lines=18) @@ | ||
515 | $this->sheets = []; |
|
516 | ||
517 | // Parse Workbook Global Substream |
|
518 | while ($this->pos < $this->dataSize) { |
|
519 | $code = self::getInt2d($this->data, $this->pos); |
|
520 | ||
521 | switch ($code) { |
|
522 | case self::XLS_TYPE_BOF: |
|
523 | $this->readBof(); |
|
524 | break; |
|
525 | case self::XLS_TYPE_SHEET: |
|
526 | $this->readSheet(); |
|
527 | break; |
|
528 | case self::XLS_TYPE_EOF: |
|
529 | $this->readDefault(); |
|
530 | break 2; |
|
531 | default: |
|
532 | $this->readDefault(); |
|
533 | break; |
|
534 | } |
|
535 | } |
|
536 | ||
537 | // Parse the individual sheets |
|
538 | foreach ($this->sheets as $sheet) { |