Code Duplication    Length = 18-18 lines in 2 locations

src/PhpSpreadsheet/Reader/Xls.php 2 locations

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