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