Code Duplication    Length = 5-6 lines in 2 locations

src/PhpSpreadsheet/Reader/Excel5.php 2 locations

@@ 1993-1997 (lines=5) @@
1990
            // offset: 12; size: 1; character set
1991
            // offset: 13; size: 1; not used
1992
            // offset: 14; size: var; font name
1993
            if ($this->version == self::XLS_BIFF8) {
1994
                $string = self::readUnicodeStringShort(substr($recordData, 14));
1995
            } else {
1996
                $string = $this->readByteStringShort(substr($recordData, 14));
1997
            }
1998
            $objFont->setName($string['value']);
1999
2000
            $this->objFonts[] = $objFont;
@@ 2030-2035 (lines=6) @@
2027
        if (!$this->readDataOnly) {
2028
            $indexCode = self::getInt2d($recordData, 0);
2029
2030
            if ($this->version == self::XLS_BIFF8) {
2031
                $string = self::readUnicodeStringLong(substr($recordData, 2));
2032
            } else {
2033
                // BIFF7
2034
                $string = $this->readByteStringShort(substr($recordData, 2));
2035
            }
2036
2037
            $formatString = $string['value'];
2038
            $this->formats[$indexCode] = $formatString;