Code Duplication    Length = 12-12 lines in 2 locations

src/PhpSpreadsheet/Reader/Slk.php 2 locations

@@ 145-156 (lines=12) @@
142
            if ($dataType == 'C') {
143
                //  Read cell value data
144
                foreach ($rowData as $rowDatum) {
145
                    switch ($rowDatum[0]) {
146
                        case 'C':
147
                        case 'X':
148
                            $columnIndex = substr($rowDatum, 1) - 1;
149
150
                            break;
151
                        case 'R':
152
                        case 'Y':
153
                            $rowIndex = substr($rowDatum, 1);
154
155
                            break;
156
                    }
157
158
                    $worksheetInfo[0]['totalRows'] = max($worksheetInfo[0]['totalRows'], $rowIndex);
159
                    $worksheetInfo[0]['lastColumnIndex'] = max($worksheetInfo[0]['lastColumnIndex'], $columnIndex);
@@ 446-457 (lines=12) @@
443
                }
444
            } else {
445
                foreach ($rowData as $rowDatum) {
446
                    switch ($rowDatum[0]) {
447
                        case 'C':
448
                        case 'X':
449
                            $column = substr($rowDatum, 1);
450
451
                            break;
452
                        case 'R':
453
                        case 'Y':
454
                            $row = substr($rowDatum, 1);
455
456
                            break;
457
                    }
458
                }
459
            }
460
        }