Code Duplication    Length = 6-7 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 2504-2510 (lines=7) @@
2501
		if(array_key_exists(0,$query_params)){
2502
			$this->_extract_related_models_from_sub_params_array_keys($query_params[0], $query_info_carrier,0);
2503
		}
2504
		if(array_key_exists('group_by', $query_params)){
2505
			if(is_array($query_params['group_by'])){
2506
				$this->_extract_related_models_from_sub_params_array_values($query_params['group_by'],$query_info_carrier,'group_by');
2507
			}elseif( ! empty ( $query_params['group_by'] )){
2508
				$this->_extract_related_model_info_from_query_param( $query_params['group_by'],$query_info_carrier,'group_by');
2509
			}
2510
		}
2511
		if(array_key_exists('having',$query_params)){
2512
			$this->_extract_related_models_from_sub_params_array_keys($query_params[0], $query_info_carrier,'having');
2513
		}
@@ 2514-2519 (lines=6) @@
2511
		if(array_key_exists('having',$query_params)){
2512
			$this->_extract_related_models_from_sub_params_array_keys($query_params[0], $query_info_carrier,'having');
2513
		}
2514
		if(array_key_exists('order_by', $query_params)){
2515
			if ( is_array( $query_params['order_by'] ) )
2516
				$this->_extract_related_models_from_sub_params_array_keys($query_params['order_by'],$query_info_carrier,'order_by');
2517
			elseif( ! empty( $query_params['order_by'] ))
2518
				$this->_extract_related_model_info_from_query_param( $query_params['order_by'], $query_info_carrier,'order_by');
2519
		}
2520
		if(array_key_exists('force_join', $query_params)){
2521
			$this->_extract_related_models_from_sub_params_array_values($query_params['force_join'],$query_info_carrier,'force_join');
2522
		}