Code Duplication    Length = 7-9 lines in 3 locations

src/PhpSpreadsheet/Reader/Excel5.php 3 locations

@@ 6828-6834 (lines=7) @@
6825
        $colIndex = 0x00FF & self::getInt2d($cellAddressStructure, 2);
6826
6827
        // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index)
6828
        if (!(0x4000 & self::getInt2d($cellAddressStructure, 2))) {
6829
            $column = \PhpSpreadsheet\Cell::stringFromColumnIndex($colIndex);
6830
            $column = '$' . $column;
6831
        } else {
6832
            $colIndex = ($colIndex <= 127) ? $colIndex : $colIndex - 256;
6833
            $column = \PhpSpreadsheet\Cell::stringFromColumnIndex($baseCol + $colIndex);
6834
        }
6835
6836
        // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index)
6837
        if (!(0x8000 & self::getInt2d($cellAddressStructure, 2))) {
@@ 7008-7016 (lines=9) @@
7005
        $fcIndex = 0x00FF & self::getInt2d($subData, 4);
7006
7007
        // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index)
7008
        if (!(0x4000 & self::getInt2d($subData, 4))) {
7009
            // absolute column index
7010
            $fc = \PhpSpreadsheet\Cell::stringFromColumnIndex($fcIndex);
7011
            $fc = '$' . $fc;
7012
        } else {
7013
            // column offset
7014
            $fcIndex = ($fcIndex <= 127) ? $fcIndex : $fcIndex - 256;
7015
            $fc = \PhpSpreadsheet\Cell::stringFromColumnIndex($baseCol + $fcIndex);
7016
        }
7017
7018
        // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index)
7019
        if (!(0x8000 & self::getInt2d($subData, 4))) {
@@ 7037-7045 (lines=9) @@
7034
        $lc = \PhpSpreadsheet\Cell::stringFromColumnIndex($baseCol + $lcIndex);
7035
7036
        // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index)
7037
        if (!(0x4000 & self::getInt2d($subData, 6))) {
7038
            // absolute column index
7039
            $lc = \PhpSpreadsheet\Cell::stringFromColumnIndex($lcIndex);
7040
            $lc = '$' . $lc;
7041
        } else {
7042
            // column offset
7043
            $lcIndex = ($lcIndex <= 127) ? $lcIndex : $lcIndex - 256;
7044
            $lc = \PhpSpreadsheet\Cell::stringFromColumnIndex($baseCol + $lcIndex);
7045
        }
7046
7047
        // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index)
7048
        if (!(0x8000 & self::getInt2d($subData, 6))) {