Code Duplication    Length = 18-18 lines in 2 locations

src/PhpSpreadsheet/Reader/Xls.php 2 locations

@@ 467-484 (lines=18) @@
464
        $this->sheets = [];
465
466
        // Parse Workbook Global Substream
467
        while ($this->pos < $this->dataSize) {
468
            $code = self::getUInt2d($this->data, $this->pos);
469
470
            switch ($code) {
471
                case self::XLS_TYPE_BOF:
472
                    $this->readBof();
473
474
                    break;
475
                case self::XLS_TYPE_SHEET:
476
                    $this->readSheet();
477
478
                    break;
479
                case self::XLS_TYPE_EOF:
480
                    $this->readDefault();
481
482
                    break 2;
483
                default:
484
                    $this->readDefault();
485
486
                    break;
487
            }
@@ 526-543 (lines=18) @@
523
        $this->sheets = [];
524
525
        // Parse Workbook Global Substream
526
        while ($this->pos < $this->dataSize) {
527
            $code = self::getUInt2d($this->data, $this->pos);
528
529
            switch ($code) {
530
                case self::XLS_TYPE_BOF:
531
                    $this->readBof();
532
533
                    break;
534
                case self::XLS_TYPE_SHEET:
535
                    $this->readSheet();
536
537
                    break;
538
                case self::XLS_TYPE_EOF:
539
                    $this->readDefault();
540
541
                    break 2;
542
                default:
543
                    $this->readDefault();
544
545
                    break;
546
            }