Code Duplication    Length = 14-14 lines in 2 locations

src/PhpSpreadsheet/Reader/Xls.php 2 locations

@@ 7679-7692 (lines=14) @@
7676
     *
7677
     * @return array
7678
     */
7679
    private static function readUnicodeStringShort($subData)
7680
    {
7681
        $value = '';
7682
7683
        // offset: 0: size: 1; length of the string (character count)
7684
        $characterCount = ord($subData[0]);
7685
7686
        $string = self::readUnicodeString(substr($subData, 1), $characterCount);
7687
7688
        // add 1 for the string length
7689
        $string['size'] += 1;
7690
7691
        return $string;
7692
    }
7693
7694
    /**
7695
     * Extracts an Excel Unicode long string (16-bit string length)
@@ 7703-7716 (lines=14) @@
7700
     *
7701
     * @return array
7702
     */
7703
    private static function readUnicodeStringLong($subData)
7704
    {
7705
        $value = '';
7706
7707
        // offset: 0: size: 2; length of the string (character count)
7708
        $characterCount = self::getUInt2d($subData, 0);
7709
7710
        $string = self::readUnicodeString(substr($subData, 2), $characterCount);
7711
7712
        // add 2 for the string length
7713
        $string['size'] += 2;
7714
7715
        return $string;
7716
    }
7717
7718
    /**
7719
     * Read Unicode string with no string length field, but with known character count