Code Duplication    Length = 6-7 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 2607-2613 (lines=7) @@
2604
		if ( array_key_exists( 0, $query_params ) ) {
2605
			$this->_extract_related_models_from_sub_params_array_keys( $query_params[0], $query_info_carrier, 0 );
2606
		}
2607
		if ( array_key_exists( 'group_by', $query_params ) ) {
2608
			if ( is_array( $query_params['group_by'] ) ) {
2609
				$this->_extract_related_models_from_sub_params_array_values(
2610
					$query_params['group_by'],
2611
					$query_info_carrier,
2612
					'group_by'
2613
				);
2614
			} elseif ( ! empty ( $query_params['group_by'] ) ) {
2615
				$this->_extract_related_model_info_from_query_param(
2616
					$query_params['group_by'],
@@ 2629-2634 (lines=6) @@
2626
				'having'
2627
			);
2628
		}
2629
		if ( array_key_exists( 'order_by', $query_params ) ) {
2630
			if ( is_array( $query_params['order_by'] ) ) {
2631
				$this->_extract_related_models_from_sub_params_array_keys(
2632
					$query_params['order_by'],
2633
					$query_info_carrier,
2634
					'order_by'
2635
				);
2636
			} elseif ( ! empty( $query_params['order_by'] ) ) {
2637
				$this->_extract_related_model_info_from_query_param(