Code Duplication    Length = 5-6 lines in 2 locations

src/PhpSpreadsheet/Reader/Xls.php 2 locations

@@ 2098-2102 (lines=5) @@
2095
            // offset: 12; size: 1; character set
2096
            // offset: 13; size: 1; not used
2097
            // offset: 14; size: var; font name
2098
            if ($this->version == self::XLS_BIFF8) {
2099
                $string = self::readUnicodeStringShort(substr($recordData, 14));
2100
            } else {
2101
                $string = $this->readByteStringShort(substr($recordData, 14));
2102
            }
2103
            $objFont->setName($string['value']);
2104
2105
            $this->objFonts[] = $objFont;
@@ 2134-2139 (lines=6) @@
2131
        if (!$this->readDataOnly) {
2132
            $indexCode = self::getUInt2d($recordData, 0);
2133
2134
            if ($this->version == self::XLS_BIFF8) {
2135
                $string = self::readUnicodeStringLong(substr($recordData, 2));
2136
            } else {
2137
                // BIFF7
2138
                $string = $this->readByteStringShort(substr($recordData, 2));
2139
            }
2140
2141
            $formatString = $string['value'];
2142
            $this->formats[$indexCode] = $formatString;