Code Duplication    Length = 14-14 lines in 2 locations

src/PhpSpreadsheet/Reader/Xls.php 2 locations

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