Code Duplication    Length = 10-10 lines in 2 locations

src/PhpSpreadsheet/Reader/SYLK.php 2 locations

@@ 154-163 (lines=10) @@
151
            if ($dataType == 'C') {
152
                //  Read cell value data
153
                foreach ($rowData as $rowDatum) {
154
                    switch ($rowDatum{0}) {
155
                        case 'C':
156
                        case 'X':
157
                            $columnIndex = substr($rowDatum, 1) - 1;
158
                            break;
159
                        case 'R':
160
                        case 'Y':
161
                            $rowIndex = substr($rowDatum, 1);
162
                            break;
163
                    }
164
165
                    $worksheetInfo[0]['totalRows'] = max($worksheetInfo[0]['totalRows'], $rowIndex);
166
                    $worksheetInfo[0]['lastColumnIndex'] = max($worksheetInfo[0]['lastColumnIndex'], $columnIndex);
@@ 426-435 (lines=10) @@
423
                }
424
            } else {
425
                foreach ($rowData as $rowDatum) {
426
                    switch ($rowDatum{0}) {
427
                        case 'C':
428
                        case 'X':
429
                            $column = substr($rowDatum, 1);
430
                            break;
431
                        case 'R':
432
                        case 'Y':
433
                            $row = substr($rowDatum, 1);
434
                            break;
435
                    }
436
                }
437
            }
438
        }