Code Duplication    Length = 7-7 lines in 2 locations

src/PhpSpreadsheet/Reader/Xls.php 2 locations

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