Code Duplication    Length = 6-7 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 3099-3105 (lines=7) @@
3096
        if (array_key_exists(0, $query_params)) {
3097
            $this->_extract_related_models_from_sub_params_array_keys($query_params[0], $query_info_carrier, 0);
3098
        }
3099
        if (array_key_exists('group_by', $query_params)) {
3100
            if (is_array($query_params['group_by'])) {
3101
                $this->_extract_related_models_from_sub_params_array_values(
3102
                    $query_params['group_by'],
3103
                    $query_info_carrier,
3104
                    'group_by'
3105
                );
3106
            } elseif (! empty ($query_params['group_by'])) {
3107
                $this->_extract_related_model_info_from_query_param(
3108
                    $query_params['group_by'],
@@ 3121-3126 (lines=6) @@
3118
                'having'
3119
            );
3120
        }
3121
        if (array_key_exists('order_by', $query_params)) {
3122
            if (is_array($query_params['order_by'])) {
3123
                $this->_extract_related_models_from_sub_params_array_keys(
3124
                    $query_params['order_by'],
3125
                    $query_info_carrier,
3126
                    'order_by'
3127
                );
3128
            } elseif (! empty($query_params['order_by'])) {
3129
                $this->_extract_related_model_info_from_query_param(