Code Duplication    Length = 10-10 lines in 2 locations

src/PhpSpreadsheet/Reader/SYLK.php 2 locations

@@ 161-170 (lines=10) @@
158
            if ($dataType == 'C') {
159
                //  Read cell value data
160
                foreach ($rowData as $rowDatum) {
161
                    switch ($rowDatum{0}) {
162
                        case 'C':
163
                        case 'X':
164
                            $columnIndex = substr($rowDatum, 1) - 1;
165
                            break;
166
                        case 'R':
167
                        case 'Y':
168
                            $rowIndex = substr($rowDatum, 1);
169
                            break;
170
                    }
171
172
                    $worksheetInfo[0]['totalRows'] = max($worksheetInfo[0]['totalRows'], $rowIndex);
173
                    $worksheetInfo[0]['lastColumnIndex'] = max($worksheetInfo[0]['lastColumnIndex'], $columnIndex);
@@ 432-441 (lines=10) @@
429
                }
430
            } else {
431
                foreach ($rowData as $rowDatum) {
432
                    switch ($rowDatum{0}) {
433
                        case 'C':
434
                        case 'X':
435
                            $column = substr($rowDatum, 1);
436
                            break;
437
                        case 'R':
438
                        case 'Y':
439
                            $row = substr($rowDatum, 1);
440
                            break;
441
                    }
442
                }
443
            }
444
        }