Code Duplication    Length = 7-7 lines in 2 locations

src/PhpSpreadsheet/Reader/Xls.php 2 locations

@@ 2582-2588 (lines=7) @@
2579
        $sheetType = ord($recordData[5]);
2580
2581
        // offset: 6; size: var; sheet name
2582
        if ($this->version == self::XLS_BIFF8) {
2583
            $string = self::readUnicodeStringShort(substr($recordData, 6));
2584
            $rec_name = $string['value'];
2585
        } elseif ($this->version == self::XLS_BIFF7) {
2586
            $string = $this->readByteStringShort(substr($recordData, 6));
2587
            $rec_name = $string['value'];
2588
        }
2589
2590
        $this->sheets[] = [
2591
            'name' => $rec_name,
@@ 4078-4084 (lines=7) @@
4075
4076
            // add cell value
4077
            // todo: what if string is very long? continue record
4078
            if ($this->version == self::XLS_BIFF8) {
4079
                $string = self::readUnicodeStringLong(substr($recordData, 6));
4080
                $value = $string['value'];
4081
            } else {
4082
                $string = $this->readByteStringLong(substr($recordData, 6));
4083
                $value = $string['value'];
4084
            }
4085
            if ($this->readEmptyCells || trim($value) !== '') {
4086
                $cell = $this->phpSheet->getCell($columnString . ($row + 1));
4087
                $cell->setValueExplicit($value, \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_STRING);