Code Duplication    Length = 6-7 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 3087-3093 (lines=7) @@
3084
        if (array_key_exists(0, $query_params)) {
3085
            $this->_extract_related_models_from_sub_params_array_keys($query_params[0], $query_info_carrier, 0);
3086
        }
3087
        if (array_key_exists('group_by', $query_params)) {
3088
            if (is_array($query_params['group_by'])) {
3089
                $this->_extract_related_models_from_sub_params_array_values(
3090
                    $query_params['group_by'],
3091
                    $query_info_carrier,
3092
                    'group_by'
3093
                );
3094
            } elseif (! empty ($query_params['group_by'])) {
3095
                $this->_extract_related_model_info_from_query_param(
3096
                    $query_params['group_by'],
@@ 3109-3114 (lines=6) @@
3106
                'having'
3107
            );
3108
        }
3109
        if (array_key_exists('order_by', $query_params)) {
3110
            if (is_array($query_params['order_by'])) {
3111
                $this->_extract_related_models_from_sub_params_array_keys(
3112
                    $query_params['order_by'],
3113
                    $query_info_carrier,
3114
                    'order_by'
3115
                );
3116
            } elseif (! empty($query_params['order_by'])) {
3117
                $this->_extract_related_model_info_from_query_param(