Code Duplication    Length = 4-4 lines in 2 locations

core/db_models/EEM_Event.model.php 2 locations

@@ 596-599 (lines=4) @@
593
            $and_condition['OR'] = $where_params['OR'];
594
            unset($where_params['OR']);
595
        }
596
        if (isset($where_params['Datetime.DTT_EVT_end'])) {
597
            $and_condition['Datetime.DTT_EVT_end****'] = $where_params['Datetime.DTT_EVT_end'];
598
            unset($where_params['Datetime.DTT_EVT_end']);
599
        }
600
        if (isset($where_params['Datetime.DTT_EVT_start'])) {
601
            $and_condition['Datetime.DTT_EVT_start'] = $where_params['Datetime.DTT_EVT_start'];
602
            unset($where_params['Datetime.DTT_EVT_start']);
@@ 642-645 (lines=4) @@
639
            $where_params['AND']['OR'] = $where_params['OR'];
640
            unset($where_params['OR']);
641
        }
642
        if (isset($where_params['Datetime.DTT_EVT_end'])) {
643
            $where_params['AND']['Datetime.DTT_EVT_end****'] = $where_params['Datetime.DTT_EVT_end'];
644
            unset($where_params['Datetime.DTT_EVT_end']);
645
        }
646
        if (isset($where_params['Datetime.DTT_EVT_start'])) {
647
            $where_params['AND']['Datetime.DTT_EVT_start'] = $where_params['Datetime.DTT_EVT_start'];
648
            unset($where_params['Datetime.DTT_EVT_start']);