Code Duplication    Length = 6-7 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 3177-3183 (lines=7) @@
3174
        if (array_key_exists(0, $query_params)) {
3175
            $this->_extract_related_models_from_sub_params_array_keys($query_params[0], $query_info_carrier, 0);
3176
        }
3177
        if (array_key_exists('group_by', $query_params)) {
3178
            if (is_array($query_params['group_by'])) {
3179
                $this->_extract_related_models_from_sub_params_array_values(
3180
                    $query_params['group_by'],
3181
                    $query_info_carrier,
3182
                    'group_by'
3183
                );
3184
            } elseif (! empty ($query_params['group_by'])) {
3185
                $this->_extract_related_model_info_from_query_param(
3186
                    $query_params['group_by'],
@@ 3199-3204 (lines=6) @@
3196
                'having'
3197
            );
3198
        }
3199
        if (array_key_exists('order_by', $query_params)) {
3200
            if (is_array($query_params['order_by'])) {
3201
                $this->_extract_related_models_from_sub_params_array_keys(
3202
                    $query_params['order_by'],
3203
                    $query_info_carrier,
3204
                    'order_by'
3205
                );
3206
            } elseif (! empty($query_params['order_by'])) {
3207
                $this->_extract_related_model_info_from_query_param(