Code Duplication    Length = 6-6 lines in 2 locations

src/PhpSpreadsheet/Reader/Xls.php 2 locations

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