Code Duplication    Length = 7-9 lines in 3 locations

src/PhpSpreadsheet/Reader/Xls.php 3 locations

@@ 6705-6711 (lines=7) @@
6702
        $colIndex = 0x00FF & self::getInt2d($cellAddressStructure, 2);
6703
6704
        // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index)
6705
        if (!(0x4000 & self::getInt2d($cellAddressStructure, 2))) {
6706
            $column = \PhpOffice\PhpSpreadsheet\Cell::stringFromColumnIndex($colIndex);
6707
            $column = '$' . $column;
6708
        } else {
6709
            $colIndex = ($colIndex <= 127) ? $colIndex : $colIndex - 256;
6710
            $column = \PhpOffice\PhpSpreadsheet\Cell::stringFromColumnIndex($baseCol + $colIndex);
6711
        }
6712
6713
        // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index)
6714
        if (!(0x8000 & self::getInt2d($cellAddressStructure, 2))) {
@@ 6889-6897 (lines=9) @@
6886
        $fcIndex = 0x00FF & self::getInt2d($subData, 4);
6887
6888
        // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index)
6889
        if (!(0x4000 & self::getInt2d($subData, 4))) {
6890
            // absolute column index
6891
            $fc = \PhpOffice\PhpSpreadsheet\Cell::stringFromColumnIndex($fcIndex);
6892
            $fc = '$' . $fc;
6893
        } else {
6894
            // column offset
6895
            $fcIndex = ($fcIndex <= 127) ? $fcIndex : $fcIndex - 256;
6896
            $fc = \PhpOffice\PhpSpreadsheet\Cell::stringFromColumnIndex($baseCol + $fcIndex);
6897
        }
6898
6899
        // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index)
6900
        if (!(0x8000 & self::getInt2d($subData, 4))) {
@@ 6918-6926 (lines=9) @@
6915
        $lc = \PhpOffice\PhpSpreadsheet\Cell::stringFromColumnIndex($baseCol + $lcIndex);
6916
6917
        // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index)
6918
        if (!(0x4000 & self::getInt2d($subData, 6))) {
6919
            // absolute column index
6920
            $lc = \PhpOffice\PhpSpreadsheet\Cell::stringFromColumnIndex($lcIndex);
6921
            $lc = '$' . $lc;
6922
        } else {
6923
            // column offset
6924
            $lcIndex = ($lcIndex <= 127) ? $lcIndex : $lcIndex - 256;
6925
            $lc = \PhpOffice\PhpSpreadsheet\Cell::stringFromColumnIndex($baseCol + $lcIndex);
6926
        }
6927
6928
        // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index)
6929
        if (!(0x8000 & self::getInt2d($subData, 6))) {