Code Duplication    Length = 7-7 lines in 2 locations

src/PhpSpreadsheet/Reader/Excel5.php 2 locations

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