Code Duplication    Length = 6-7 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 2512-2518 (lines=7) @@
2509
		if(array_key_exists(0,$query_params)){
2510
			$this->_extract_related_models_from_sub_params_array_keys($query_params[0], $query_info_carrier,0);
2511
		}
2512
		if(array_key_exists('group_by', $query_params)){
2513
			if(is_array($query_params['group_by'])){
2514
				$this->_extract_related_models_from_sub_params_array_values($query_params['group_by'],$query_info_carrier,'group_by');
2515
			}elseif( ! empty ( $query_params['group_by'] )){
2516
				$this->_extract_related_model_info_from_query_param( $query_params['group_by'],$query_info_carrier,'group_by');
2517
			}
2518
		}
2519
		if(array_key_exists('having',$query_params)){
2520
			$this->_extract_related_models_from_sub_params_array_keys($query_params[0], $query_info_carrier,'having');
2521
		}
@@ 2522-2527 (lines=6) @@
2519
		if(array_key_exists('having',$query_params)){
2520
			$this->_extract_related_models_from_sub_params_array_keys($query_params[0], $query_info_carrier,'having');
2521
		}
2522
		if(array_key_exists('order_by', $query_params)){
2523
			if ( is_array( $query_params['order_by'] ) )
2524
				$this->_extract_related_models_from_sub_params_array_keys($query_params['order_by'],$query_info_carrier,'order_by');
2525
			elseif( ! empty( $query_params['order_by'] ))
2526
				$this->_extract_related_model_info_from_query_param( $query_params['order_by'], $query_info_carrier,'order_by');
2527
		}
2528
		if(array_key_exists('force_join', $query_params)){
2529
			$this->_extract_related_models_from_sub_params_array_values($query_params['force_join'],$query_info_carrier,'force_join');
2530
		}