Code Duplication    Length = 7-7 lines in 2 locations

src/PhpSpreadsheet/Reader/Xls.php 2 locations

@@ 2570-2576 (lines=7) @@
2567
        $sheetType = ord($recordData[5]);
2568
2569
        // offset: 6; size: var; sheet name
2570
        if ($this->version == self::XLS_BIFF8) {
2571
            $string = self::readUnicodeStringShort(substr($recordData, 6));
2572
            $rec_name = $string['value'];
2573
        } elseif ($this->version == self::XLS_BIFF7) {
2574
            $string = $this->readByteStringShort(substr($recordData, 6));
2575
            $rec_name = $string['value'];
2576
        }
2577
2578
        $this->sheets[] = [
2579
            'name' => $rec_name,
@@ 4066-4072 (lines=7) @@
4063
4064
            // add cell value
4065
            // todo: what if string is very long? continue record
4066
            if ($this->version == self::XLS_BIFF8) {
4067
                $string = self::readUnicodeStringLong(substr($recordData, 6));
4068
                $value = $string['value'];
4069
            } else {
4070
                $string = $this->readByteStringLong(substr($recordData, 6));
4071
                $value = $string['value'];
4072
            }
4073
            if ($this->readEmptyCells || trim($value) !== '') {
4074
                $cell = $this->phpSheet->getCell($columnString . ($row + 1));
4075
                $cell->setValueExplicit($value, \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_STRING);