Code Duplication    Length = 6-7 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 2655-2661 (lines=7) @@
2652
		if ( array_key_exists( 0, $query_params ) ) {
2653
			$this->_extract_related_models_from_sub_params_array_keys( $query_params[0], $query_info_carrier, 0 );
2654
		}
2655
		if ( array_key_exists( 'group_by', $query_params ) ) {
2656
			if ( is_array( $query_params['group_by'] ) ) {
2657
				$this->_extract_related_models_from_sub_params_array_values(
2658
					$query_params['group_by'],
2659
					$query_info_carrier,
2660
					'group_by'
2661
				);
2662
			} elseif ( ! empty ( $query_params['group_by'] ) ) {
2663
				$this->_extract_related_model_info_from_query_param(
2664
					$query_params['group_by'],
@@ 2677-2682 (lines=6) @@
2674
				'having'
2675
			);
2676
		}
2677
		if ( array_key_exists( 'order_by', $query_params ) ) {
2678
			if ( is_array( $query_params['order_by'] ) ) {
2679
				$this->_extract_related_models_from_sub_params_array_keys(
2680
					$query_params['order_by'],
2681
					$query_info_carrier,
2682
					'order_by'
2683
				);
2684
			} elseif ( ! empty( $query_params['order_by'] ) ) {
2685
				$this->_extract_related_model_info_from_query_param(