Code Duplication    Length = 10-10 lines in 2 locations

src/PhpSpreadsheet/Writer/Xls.php 2 locations

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