Code Duplication    Length = 13-14 lines in 2 locations

src/PhpSpreadsheet/Reader/Excel5.php 2 locations

@@ 7296-7308 (lines=13) @@
7293
     * @param string $subData
7294
     * @return array
7295
     */
7296
    private function readByteStringShort($subData)
7297
    {
7298
        // offset: 0; size: 1; length of the string (character count)
7299
        $ln = ord($subData[0]);
7300
7301
        // offset: 1: size: var; character array (8-bit characters)
7302
        $value = $this->decodeCodepage(substr($subData, 1, $ln));
7303
7304
        return array(
7305
            'value' => $value,
7306
            'size' => 1 + $ln, // size in bytes of data structure
7307
        );
7308
    }
7309
7310
7311
    /**
@@ 7318-7331 (lines=14) @@
7315
     * @param string $subData
7316
     * @return array
7317
     */
7318
    private function readByteStringLong($subData)
7319
    {
7320
        // offset: 0; size: 2; length of the string (character count)
7321
        $ln = self::getInt2d($subData, 0);
7322
7323
        // offset: 2: size: var; character array (8-bit characters)
7324
        $value = $this->decodeCodepage(substr($subData, 2));
7325
7326
        //return $string;
7327
        return array(
7328
            'value' => $value,
7329
            'size' => 2 + $ln, // size in bytes of data structure
7330
        );
7331
    }
7332
7333
7334
    /**