Code Duplication    Length = 4-4 lines in 2 locations

core/db_models/EEM_Event.model.php 2 locations

@@ 584-587 (lines=4) @@
581
			unset( $where_params['OR'] );
582
		}
583
584
		if ( isset( $where_params['Datetime.DTT_EVT_end'] ) ) {
585
			$and_condition['Datetime.DTT_EVT_end****'] = $where_params['Datetime.DTT_EVT_end'];
586
			unset( $where_params['Datetime.DTT_EVT_end'] );
587
		}
588
589
		if ( isset( $where_params['Datetime.DTT_EVT_start'] ) ) {
590
			$and_condition['Datetime.DTT_EVT_start'] = $where_params['Datetime.DTT_EVT_start'];
@@ 632-635 (lines=4) @@
629
			unset( $where_params['OR'] );
630
		}
631
632
		if ( isset( $where_params['Datetime.DTT_EVT_end'] ) ) {
633
			$where_params['AND']['Datetime.DTT_EVT_end****'] = $where_params['Datetime.DTT_EVT_end'];
634
			unset( $where_params['Datetime.DTT_EVT_end'] );
635
		}
636
637
		if ( isset( $where_params['Datetime.DTT_EVT_start'] ) ) {
638
			$where_params['AND']['Datetime.DTT_EVT_start'] = $where_params['Datetime.DTT_EVT_start'];