Code Duplication    Length = 6-7 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 2694-2700 (lines=7) @@
2691
		if ( array_key_exists( 0, $query_params ) ) {
2692
			$this->_extract_related_models_from_sub_params_array_keys( $query_params[0], $query_info_carrier, 0 );
2693
		}
2694
		if ( array_key_exists( 'group_by', $query_params ) ) {
2695
			if ( is_array( $query_params['group_by'] ) ) {
2696
				$this->_extract_related_models_from_sub_params_array_values(
2697
					$query_params['group_by'],
2698
					$query_info_carrier,
2699
					'group_by'
2700
				);
2701
			} elseif ( ! empty ( $query_params['group_by'] ) ) {
2702
				$this->_extract_related_model_info_from_query_param(
2703
					$query_params['group_by'],
@@ 2716-2721 (lines=6) @@
2713
				'having'
2714
			);
2715
		}
2716
		if ( array_key_exists( 'order_by', $query_params ) ) {
2717
			if ( is_array( $query_params['order_by'] ) ) {
2718
				$this->_extract_related_models_from_sub_params_array_keys(
2719
					$query_params['order_by'],
2720
					$query_info_carrier,
2721
					'order_by'
2722
				);
2723
			} elseif ( ! empty( $query_params['order_by'] ) ) {
2724
				$this->_extract_related_model_info_from_query_param(