Code Duplication    Length = 7-7 lines in 2 locations

src/PhpSpreadsheet/Reader/Xls.php 2 locations

@@ 1429-1435 (lines=7) @@
1426
                case 0x13: // 4 byte unsigned integer
1427
                    // not needed yet, fix later if necessary
1428
                    break;
1429
                case 0x1E: // null-terminated string prepended by dword string length
1430
                    $byteLength = self::getInt4d($this->summaryInformation, $secOffset + 4 + $offset);
1431
                    $value = substr($this->summaryInformation, $secOffset + 8 + $offset, $byteLength);
1432
                    $value = StringHelper::convertEncoding($value, 'UTF-8', $codePage);
1433
                    $value = rtrim($value);
1434
1435
                    break;
1436
                case 0x40: // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601)
1437
                    // PHP-time
1438
                    $value = OLE::OLE2LocalDate(substr($this->summaryInformation, $secOffset + 4 + $offset, 8));
@@ 1581-1587 (lines=7) @@
1578
                case 0x13:    //    4 byte unsigned integer
1579
                    // not needed yet, fix later if necessary
1580
                    break;
1581
                case 0x1E:    //    null-terminated string prepended by dword string length
1582
                    $byteLength = self::getInt4d($this->documentSummaryInformation, $secOffset + 4 + $offset);
1583
                    $value = substr($this->documentSummaryInformation, $secOffset + 8 + $offset, $byteLength);
1584
                    $value = StringHelper::convertEncoding($value, 'UTF-8', $codePage);
1585
                    $value = rtrim($value);
1586
1587
                    break;
1588
                case 0x40:    //    Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601)
1589
                    // PHP-Time
1590
                    $value = OLE::OLE2LocalDate(substr($this->documentSummaryInformation, $secOffset + 4 + $offset, 8));