Code Duplication    Length = 4-4 lines in 2 locations

core/db_models/EEM_Event.model.php 2 locations

@@ 586-589 (lines=4) @@
583
			unset( $where_params['OR'] );
584
		}
585
586
		if ( isset( $where_params['Datetime.DTT_EVT_end'] ) ) {
587
			$and_condition['Datetime.DTT_EVT_end****'] = $where_params['Datetime.DTT_EVT_end'];
588
			unset( $where_params['Datetime.DTT_EVT_end'] );
589
		}
590
591
		if ( isset( $where_params['Datetime.DTT_EVT_start'] ) ) {
592
			$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'];