Code Duplication    Length = 10-10 lines in 2 locations

src/PhpSpreadsheet/Writer/Xls.php 2 locations

@@ 841-850 (lines=10) @@
838
            ++$dataSection_NumProps;
839
        }
840
        //    Created Date/Time
841
        if ($this->spreadsheet->getProperties()->getCreated()) {
842
            $dataProp = $this->spreadsheet->getProperties()->getCreated();
843
            $dataSection[] = [
844
                'summary' => ['pack' => 'V', 'data' => 0x0C],
845
                'offset' => ['pack' => 'V'],
846
                'type' => ['pack' => 'V', 'data' => 0x40], // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601)
847
                'data' => ['data' => \PhpOffice\PhpSpreadsheet\Shared\OLE::localDateToOLE($dataProp)],
848
            ];
849
            ++$dataSection_NumProps;
850
        }
851
        //    Modified Date/Time
852
        if ($this->spreadsheet->getProperties()->getModified()) {
853
            $dataProp = $this->spreadsheet->getProperties()->getModified();
@@ 852-861 (lines=10) @@
849
            ++$dataSection_NumProps;
850
        }
851
        //    Modified Date/Time
852
        if ($this->spreadsheet->getProperties()->getModified()) {
853
            $dataProp = $this->spreadsheet->getProperties()->getModified();
854
            $dataSection[] = [
855
                'summary' => ['pack' => 'V', 'data' => 0x0D],
856
                'offset' => ['pack' => 'V'],
857
                'type' => ['pack' => 'V', 'data' => 0x40], // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601)
858
                'data' => ['data' => \PhpOffice\PhpSpreadsheet\Shared\OLE::localDateToOLE($dataProp)],
859
            ];
860
            ++$dataSection_NumProps;
861
        }
862
        //    Security
863
        $dataSection[] = [
864
            'summary' => ['pack' => 'V', 'data' => 0x13],