Code Duplication    Length = 14-14 lines in 2 locations

src/PhpSpreadsheet/Reader/Xls.php 2 locations

@@ 7208-7221 (lines=14) @@
7205
     * @param string $subData
7206
     * @return array
7207
     */
7208
    private static function readUnicodeStringShort($subData)
7209
    {
7210
        $value = '';
7211
7212
        // offset: 0: size: 1; length of the string (character count)
7213
        $characterCount = ord($subData[0]);
7214
7215
        $string = self::readUnicodeString(substr($subData, 1), $characterCount);
7216
7217
        // add 1 for the string length
7218
        $string['size'] += 1;
7219
7220
        return $string;
7221
    }
7222
7223
    /**
7224
     * Extracts an Excel Unicode long string (16-bit string length)
@@ 7231-7244 (lines=14) @@
7228
     * @param string $subData
7229
     * @return array
7230
     */
7231
    private static function readUnicodeStringLong($subData)
7232
    {
7233
        $value = '';
7234
7235
        // offset: 0: size: 2; length of the string (character count)
7236
        $characterCount = self::getInt2d($subData, 0);
7237
7238
        $string = self::readUnicodeString(substr($subData, 2), $characterCount);
7239
7240
        // add 2 for the string length
7241
        $string['size'] += 2;
7242
7243
        return $string;
7244
    }
7245
7246
    /**
7247
     * Read Unicode string with no string length field, but with known character count