Code Duplication    Length = 6-7 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 3121-3127 (lines=7) @@
3118
        if (array_key_exists(0, $query_params)) {
3119
            $this->_extract_related_models_from_sub_params_array_keys($query_params[0], $query_info_carrier, 0);
3120
        }
3121
        if (array_key_exists('group_by', $query_params)) {
3122
            if (is_array($query_params['group_by'])) {
3123
                $this->_extract_related_models_from_sub_params_array_values(
3124
                    $query_params['group_by'],
3125
                    $query_info_carrier,
3126
                    'group_by'
3127
                );
3128
            } elseif (! empty ($query_params['group_by'])) {
3129
                $this->_extract_related_model_info_from_query_param(
3130
                    $query_params['group_by'],
@@ 3143-3148 (lines=6) @@
3140
                'having'
3141
            );
3142
        }
3143
        if (array_key_exists('order_by', $query_params)) {
3144
            if (is_array($query_params['order_by'])) {
3145
                $this->_extract_related_models_from_sub_params_array_keys(
3146
                    $query_params['order_by'],
3147
                    $query_info_carrier,
3148
                    'order_by'
3149
                );
3150
            } elseif (! empty($query_params['order_by'])) {
3151
                $this->_extract_related_model_info_from_query_param(