Code Duplication    Length = 6-6 lines in 2 locations

core/db_classes/EE_Datetime.class.php 2 locations

@@ 614-619 (lines=6) @@
611
     * @throws InvalidDataTypeException
612
     * @throws EE_Error
613
     */
614
    public function date_range($dt_frmt = '', $conjunction = ' - ')
615
    {
616
        $dt_frmt = ! empty($dt_frmt) ? $dt_frmt : $this->_dt_frmt;
617
        $start = str_replace(
618
            ' ',
619
            ' ',
620
            $this->get_i18n_datetime('DTT_EVT_start', $dt_frmt)
621
        );
622
        $end = str_replace(
@@ 722-727 (lines=6) @@
719
     * @throws InvalidDataTypeException
720
     * @throws EE_Error
721
     */
722
    public function time_range($tm_format = '', $conjunction = ' - ')
723
    {
724
        $tm_format = ! empty($tm_format) ? $tm_format : $this->_tm_frmt;
725
        $start = str_replace(
726
            ' ',
727
            ' ',
728
            $this->get_i18n_datetime('DTT_EVT_start', $tm_format)
729
        );
730
        $end = str_replace(