Code Duplication    Length = 6-7 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 2412-2418 (lines=7) @@
2409
		if(array_key_exists(0,$query_params)){
2410
			$this->_extract_related_models_from_sub_params_array_keys($query_params[0], $query_info_carrier,0);
2411
		}
2412
		if(array_key_exists('group_by', $query_params)){
2413
			if(is_array($query_params['group_by'])){
2414
				$this->_extract_related_models_from_sub_params_array_values($query_params['group_by'],$query_info_carrier,'group_by');
2415
			}elseif( ! empty ( $query_params['group_by'] )){
2416
				$this->_extract_related_model_info_from_query_param( $query_params['group_by'],$query_info_carrier,'group_by');
2417
			}
2418
		}
2419
		if(array_key_exists('having',$query_params)){
2420
			$this->_extract_related_models_from_sub_params_array_keys($query_params[0], $query_info_carrier,'having');
2421
		}
@@ 2422-2427 (lines=6) @@
2419
		if(array_key_exists('having',$query_params)){
2420
			$this->_extract_related_models_from_sub_params_array_keys($query_params[0], $query_info_carrier,'having');
2421
		}
2422
		if(array_key_exists('order_by', $query_params)){
2423
			if ( is_array( $query_params['order_by'] ) )
2424
				$this->_extract_related_models_from_sub_params_array_keys($query_params['order_by'],$query_info_carrier,'order_by');
2425
			elseif( ! empty( $query_params['order_by'] ))
2426
				$this->_extract_related_model_info_from_query_param( $query_params['order_by'], $query_info_carrier,'order_by');
2427
		}
2428
		if(array_key_exists('force_join', $query_params)){
2429
			$this->_extract_related_models_from_sub_params_array_values($query_params['force_join'],$query_info_carrier,'force_join');
2430
		}