Code Duplication    Length = 5-6 lines in 2 locations

src/PhpSpreadsheet/Reader/Excel5.php 2 locations

@@ 1953-1957 (lines=5) @@
1950
            // offset: 12; size: 1; character set
1951
            // offset: 13; size: 1; not used
1952
            // offset: 14; size: var; font name
1953
            if ($this->version == self::XLS_BIFF8) {
1954
                $string = self::readUnicodeStringShort(substr($recordData, 14));
1955
            } else {
1956
                $string = $this->readByteStringShort(substr($recordData, 14));
1957
            }
1958
            $objFont->setName($string['value']);
1959
1960
            $this->objFonts[] = $objFont;
@@ 1989-1994 (lines=6) @@
1986
        if (!$this->readDataOnly) {
1987
            $indexCode = self::getInt2d($recordData, 0);
1988
1989
            if ($this->version == self::XLS_BIFF8) {
1990
                $string = self::readUnicodeStringLong(substr($recordData, 2));
1991
            } else {
1992
                // BIFF7
1993
                $string = $this->readByteStringShort(substr($recordData, 2));
1994
            }
1995
1996
            $formatString = $string['value'];
1997
            $this->formats[$indexCode] = $formatString;