Code Duplication    Length = 8-8 lines in 2 locations

src/PhpSpreadsheet/Writer/Excel5.php 2 locations

@@ 825-832 (lines=8) @@
822
            $dataSection_NumProps++;
823
        }
824
        //    Created Date/Time
825
        if ($this->spreadsheet->getProperties()->getCreated()) {
826
            $dataProp = $this->spreadsheet->getProperties()->getCreated();
827
            $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x0C),
828
                                   'offset' => array('pack' => 'V'),
829
                                   'type'     => array('pack' => 'V', 'data' => 0x40), // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601)
830
                                   'data'    => array('data' => \PhpSpreadsheet\Shared\OLE::localDateToOLE($dataProp)));
831
            $dataSection_NumProps++;
832
        }
833
        //    Modified Date/Time
834
        if ($this->spreadsheet->getProperties()->getModified()) {
835
            $dataProp = $this->spreadsheet->getProperties()->getModified();
@@ 834-841 (lines=8) @@
831
            $dataSection_NumProps++;
832
        }
833
        //    Modified Date/Time
834
        if ($this->spreadsheet->getProperties()->getModified()) {
835
            $dataProp = $this->spreadsheet->getProperties()->getModified();
836
            $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x0D),
837
                                   'offset' => array('pack' => 'V'),
838
                                   'type'     => array('pack' => 'V', 'data' => 0x40), // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601)
839
                                   'data'    => array('data' => \PhpSpreadsheet\Shared\OLE::localDateToOLE($dataProp)));
840
            $dataSection_NumProps++;
841
        }
842
        //    Security
843
        $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x13),
844
                               'offset' => array('pack' => 'V'),