Code Duplication    Length = 7-9 lines in 3 locations

src/PhpSpreadsheet/Reader/Xls.php 3 locations

@@ 6696-6702 (lines=7) @@
6693
        $colIndex = 0x00FF & self::getInt2d($cellAddressStructure, 2);
6694
6695
        // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index)
6696
        if (!(0x4000 & self::getInt2d($cellAddressStructure, 2))) {
6697
            $column = \PhpOffice\PhpSpreadsheet\Cell::stringFromColumnIndex($colIndex);
6698
            $column = '$' . $column;
6699
        } else {
6700
            $colIndex = ($colIndex <= 127) ? $colIndex : $colIndex - 256;
6701
            $column = \PhpOffice\PhpSpreadsheet\Cell::stringFromColumnIndex($baseCol + $colIndex);
6702
        }
6703
6704
        // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index)
6705
        if (!(0x8000 & self::getInt2d($cellAddressStructure, 2))) {
@@ 6874-6882 (lines=9) @@
6871
        $fcIndex = 0x00FF & self::getInt2d($subData, 4);
6872
6873
        // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index)
6874
        if (!(0x4000 & self::getInt2d($subData, 4))) {
6875
            // absolute column index
6876
            $fc = \PhpOffice\PhpSpreadsheet\Cell::stringFromColumnIndex($fcIndex);
6877
            $fc = '$' . $fc;
6878
        } else {
6879
            // column offset
6880
            $fcIndex = ($fcIndex <= 127) ? $fcIndex : $fcIndex - 256;
6881
            $fc = \PhpOffice\PhpSpreadsheet\Cell::stringFromColumnIndex($baseCol + $fcIndex);
6882
        }
6883
6884
        // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index)
6885
        if (!(0x8000 & self::getInt2d($subData, 4))) {
@@ 6903-6911 (lines=9) @@
6900
        $lc = \PhpOffice\PhpSpreadsheet\Cell::stringFromColumnIndex($baseCol + $lcIndex);
6901
6902
        // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index)
6903
        if (!(0x4000 & self::getInt2d($subData, 6))) {
6904
            // absolute column index
6905
            $lc = \PhpOffice\PhpSpreadsheet\Cell::stringFromColumnIndex($lcIndex);
6906
            $lc = '$' . $lc;
6907
        } else {
6908
            // column offset
6909
            $lcIndex = ($lcIndex <= 127) ? $lcIndex : $lcIndex - 256;
6910
            $lc = \PhpOffice\PhpSpreadsheet\Cell::stringFromColumnIndex($baseCol + $lcIndex);
6911
        }
6912
6913
        // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index)
6914
        if (!(0x8000 & self::getInt2d($subData, 6))) {