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);
@@ 448-459 (lines=12) @@
445
                }
446
            } else {
447
                foreach ($rowData as $rowDatum) {
448
                    switch ($rowDatum[0]) {
449
                        case 'C':
450
                        case 'X':
451
                            $column = substr($rowDatum, 1);
452
453
                            break;
454
                        case 'R':
455
                        case 'Y':
456
                            $row = substr($rowDatum, 1);
457
458
                            break;
459
                    }
460
                }
461
            }
462
        }