Code Duplication    Length = 18-18 lines in 2 locations

src/PhpSpreadsheet/Reader/Excel5.php 2 locations

@@ 463-480 (lines=18) @@
460
        $this->sheets    = array();
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) {
@@ 521-538 (lines=18) @@
518
        $this->sheets = array();
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) {