Code Duplication    Length = 6-6 lines in 2 locations

src/PhpSpreadsheet/Reader/Xls.php 2 locations

@@ 1328-1333 (lines=6) @@
1325
                case 0x13: // 4 byte unsigned integer
1326
                    // not needed yet, fix later if necessary
1327
                    break;
1328
                case 0x1E: // null-terminated string prepended by dword string length
1329
                    $byteLength = self::getInt4d($this->summaryInformation, $secOffset + 4 + $offset);
1330
                    $value = substr($this->summaryInformation, $secOffset + 8 + $offset, $byteLength);
1331
                    $value = \PhpOffice\PhpSpreadsheet\Shared\StringHelper::convertEncoding($value, 'UTF-8', $codePage);
1332
                    $value = rtrim($value);
1333
                    break;
1334
                case 0x40: // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601)
1335
                    // PHP-time
1336
                    $value = \PhpOffice\PhpSpreadsheet\Shared\OLE::OLE2LocalDate(substr($this->summaryInformation, $secOffset + 4 + $offset, 8));
@@ 1466-1471 (lines=6) @@
1463
                case 0x13:    //    4 byte unsigned integer
1464
                    // not needed yet, fix later if necessary
1465
                    break;
1466
                case 0x1E:    //    null-terminated string prepended by dword string length
1467
                    $byteLength = self::getInt4d($this->documentSummaryInformation, $secOffset + 4 + $offset);
1468
                    $value = substr($this->documentSummaryInformation, $secOffset + 8 + $offset, $byteLength);
1469
                    $value = \PhpOffice\PhpSpreadsheet\Shared\StringHelper::convertEncoding($value, 'UTF-8', $codePage);
1470
                    $value = rtrim($value);
1471
                    break;
1472
                case 0x40:    //    Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601)
1473
                    // PHP-Time
1474
                    $value = \PhpOffice\PhpSpreadsheet\Shared\OLE::OLE2LocalDate(substr($this->documentSummaryInformation, $secOffset + 4 + $offset, 8));