Code Duplication    Length = 10-10 lines in 2 locations

src/PhpSpreadsheet/Writer/Excel5.php 2 locations

@@ 852-861 (lines=10) @@
849
            ++$dataSection_NumProps;
850
        }
851
        //    Created Date/Time
852
        if ($this->spreadsheet->getProperties()->getCreated()) {
853
            $dataProp = $this->spreadsheet->getProperties()->getCreated();
854
            $dataSection[] = [
855
                'summary' => ['pack' => 'V', 'data' => 0x0C],
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
        //    Modified Date/Time
863
        if ($this->spreadsheet->getProperties()->getModified()) {
864
            $dataProp = $this->spreadsheet->getProperties()->getModified();
@@ 863-872 (lines=10) @@
860
            ++$dataSection_NumProps;
861
        }
862
        //    Modified Date/Time
863
        if ($this->spreadsheet->getProperties()->getModified()) {
864
            $dataProp = $this->spreadsheet->getProperties()->getModified();
865
            $dataSection[] = [
866
                'summary' => ['pack' => 'V', 'data' => 0x0D],
867
                'offset' => ['pack' => 'V'],
868
                'type' => ['pack' => 'V', 'data' => 0x40], // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601)
869
                'data' => ['data' => \PhpOffice\PhpSpreadsheet\Shared\OLE::localDateToOLE($dataProp)],
870
            ];
871
            ++$dataSection_NumProps;
872
        }
873
        //    Security
874
        $dataSection[] = [
875
            'summary' => ['pack' => 'V', 'data' => 0x13],