Code Duplication    Length = 6-6 lines in 2 locations

src/PhpSpreadsheet/Reader/Xls.php 2 locations

@@ 1335-1340 (lines=6) @@
1332
                case 0x13: // 4 byte unsigned integer
1333
                    // not needed yet, fix later if necessary
1334
                    break;
1335
                case 0x1E: // null-terminated string prepended by dword string length
1336
                    $byteLength = self::getInt4d($this->summaryInformation, $secOffset + 4 + $offset);
1337
                    $value = substr($this->summaryInformation, $secOffset + 8 + $offset, $byteLength);
1338
                    $value = \PhpOffice\PhpSpreadsheet\Shared\StringHelper::convertEncoding($value, 'UTF-8', $codePage);
1339
                    $value = rtrim($value);
1340
                    break;
1341
                case 0x40: // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601)
1342
                    // PHP-time
1343
                    $value = \PhpOffice\PhpSpreadsheet\Shared\OLE::OLE2LocalDate(substr($this->summaryInformation, $secOffset + 4 + $offset, 8));
@@ 1473-1478 (lines=6) @@
1470
                case 0x13:    //    4 byte unsigned integer
1471
                    // not needed yet, fix later if necessary
1472
                    break;
1473
                case 0x1E:    //    null-terminated string prepended by dword string length
1474
                    $byteLength = self::getInt4d($this->documentSummaryInformation, $secOffset + 4 + $offset);
1475
                    $value = substr($this->documentSummaryInformation, $secOffset + 8 + $offset, $byteLength);
1476
                    $value = \PhpOffice\PhpSpreadsheet\Shared\StringHelper::convertEncoding($value, 'UTF-8', $codePage);
1477
                    $value = rtrim($value);
1478
                    break;
1479
                case 0x40:    //    Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601)
1480
                    // PHP-Time
1481
                    $value = \PhpOffice\PhpSpreadsheet\Shared\OLE::OLE2LocalDate(substr($this->documentSummaryInformation, $secOffset + 4 + $offset, 8));