Code Duplication    Length = 7-7 lines in 2 locations

src/PhpSpreadsheet/Reader/Xls.php 2 locations

@@ 2739-2745 (lines=7) @@
2736
        $sheetType = ord($recordData[5]);
2737
2738
        // offset: 6; size: var; sheet name
2739
        if ($this->version == self::XLS_BIFF8) {
2740
            $string = self::readUnicodeStringShort(substr($recordData, 6));
2741
            $rec_name = $string['value'];
2742
        } elseif ($this->version == self::XLS_BIFF7) {
2743
            $string = $this->readByteStringShort(substr($recordData, 6));
2744
            $rec_name = $string['value'];
2745
        }
2746
2747
        $this->sheets[] = [
2748
            'name' => $rec_name,
@@ 4243-4249 (lines=7) @@
4240
4241
            // add cell value
4242
            // todo: what if string is very long? continue record
4243
            if ($this->version == self::XLS_BIFF8) {
4244
                $string = self::readUnicodeStringLong(substr($recordData, 6));
4245
                $value = $string['value'];
4246
            } else {
4247
                $string = $this->readByteStringLong(substr($recordData, 6));
4248
                $value = $string['value'];
4249
            }
4250
            if ($this->readEmptyCells || trim($value) !== '') {
4251
                $cell = $this->phpSheet->getCell($columnString . ($row + 1));
4252
                $cell->setValueExplicit($value, DataType::TYPE_STRING);