Code Duplication    Length = 6-7 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

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