Code Duplication    Length = 9-9 lines in 2 locations

src/PhpSpreadsheet/Reader/Xls.php 2 locations

@@ 6912-6920 (lines=9) @@
6909
        }
6910
6911
        // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index)
6912
        if (!(0x8000 & self::getInt2d($subData, 4))) {
6913
            // absolute row index
6914
            $fr = $frIndex + 1;
6915
            $fr = '$' . $fr;
6916
        } else {
6917
            // row offset
6918
            $frIndex = ($frIndex <= 32767) ? $frIndex : $frIndex - 65536;
6919
            $fr = $baseRow + $frIndex;
6920
        }
6921
6922
        // offset: 6; size: 2; last column with relative/absolute flags
6923
@@ 6941-6949 (lines=9) @@
6938
        }
6939
6940
        // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index)
6941
        if (!(0x8000 & self::getInt2d($subData, 6))) {
6942
            // absolute row index
6943
            $lr = $lrIndex + 1;
6944
            $lr = '$' . $lr;
6945
        } else {
6946
            // row offset
6947
            $lrIndex = ($lrIndex <= 32767) ? $lrIndex : $lrIndex - 65536;
6948
            $lr = $baseRow + $lrIndex;
6949
        }
6950
6951
        return "$fc$fr:$lc$lr";
6952
    }