Code Duplication    Length = 4-4 lines in 2 locations

core/db_models/EEM_Event.model.php 2 locations

@@ 620-623 (lines=4) @@
617
            $and_condition['OR'] = $where_params['OR'];
618
            unset($where_params['OR']);
619
        }
620
        if (isset($where_params['Datetime.DTT_EVT_end'])) {
621
            $and_condition['Datetime.DTT_EVT_end****'] = $where_params['Datetime.DTT_EVT_end'];
622
            unset($where_params['Datetime.DTT_EVT_end']);
623
        }
624
        if (isset($where_params['Datetime.DTT_EVT_start'])) {
625
            $and_condition['Datetime.DTT_EVT_start'] = $where_params['Datetime.DTT_EVT_start'];
626
            unset($where_params['Datetime.DTT_EVT_start']);
@@ 666-669 (lines=4) @@
663
            $where_params['AND']['OR'] = $where_params['OR'];
664
            unset($where_params['OR']);
665
        }
666
        if (isset($where_params['Datetime.DTT_EVT_end'])) {
667
            $where_params['AND']['Datetime.DTT_EVT_end****'] = $where_params['Datetime.DTT_EVT_end'];
668
            unset($where_params['Datetime.DTT_EVT_end']);
669
        }
670
        if (isset($where_params['Datetime.DTT_EVT_start'])) {
671
            $where_params['AND']['Datetime.DTT_EVT_start'] = $where_params['Datetime.DTT_EVT_start'];
672
            unset($where_params['Datetime.DTT_EVT_start']);