Code Duplication    Length = 7-9 lines in 3 locations

src/PhpSpreadsheet/Reader/Xls.php 3 locations

@@ 6703-6709 (lines=7) @@
6700
        $colIndex = 0x00FF & self::getInt2d($cellAddressStructure, 2);
6701
6702
        // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index)
6703
        if (!(0x4000 & self::getInt2d($cellAddressStructure, 2))) {
6704
            $column = \PhpOffice\PhpSpreadsheet\Cell::stringFromColumnIndex($colIndex);
6705
            $column = '$' . $column;
6706
        } else {
6707
            $colIndex = ($colIndex <= 127) ? $colIndex : $colIndex - 256;
6708
            $column = \PhpOffice\PhpSpreadsheet\Cell::stringFromColumnIndex($baseCol + $colIndex);
6709
        }
6710
6711
        // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index)
6712
        if (!(0x8000 & self::getInt2d($cellAddressStructure, 2))) {
@@ 6881-6889 (lines=9) @@
6878
        $fcIndex = 0x00FF & self::getInt2d($subData, 4);
6879
6880
        // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index)
6881
        if (!(0x4000 & self::getInt2d($subData, 4))) {
6882
            // absolute column index
6883
            $fc = \PhpOffice\PhpSpreadsheet\Cell::stringFromColumnIndex($fcIndex);
6884
            $fc = '$' . $fc;
6885
        } else {
6886
            // column offset
6887
            $fcIndex = ($fcIndex <= 127) ? $fcIndex : $fcIndex - 256;
6888
            $fc = \PhpOffice\PhpSpreadsheet\Cell::stringFromColumnIndex($baseCol + $fcIndex);
6889
        }
6890
6891
        // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index)
6892
        if (!(0x8000 & self::getInt2d($subData, 4))) {
@@ 6910-6918 (lines=9) @@
6907
        $lc = \PhpOffice\PhpSpreadsheet\Cell::stringFromColumnIndex($baseCol + $lcIndex);
6908
6909
        // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index)
6910
        if (!(0x4000 & self::getInt2d($subData, 6))) {
6911
            // absolute column index
6912
            $lc = \PhpOffice\PhpSpreadsheet\Cell::stringFromColumnIndex($lcIndex);
6913
            $lc = '$' . $lc;
6914
        } else {
6915
            // column offset
6916
            $lcIndex = ($lcIndex <= 127) ? $lcIndex : $lcIndex - 256;
6917
            $lc = \PhpOffice\PhpSpreadsheet\Cell::stringFromColumnIndex($baseCol + $lcIndex);
6918
        }
6919
6920
        // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index)
6921
        if (!(0x8000 & self::getInt2d($subData, 6))) {