Code Duplication    Length = 6-7 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 3208-3214 (lines=7) @@
3205
        if (array_key_exists(0, $query_params)) {
3206
            $this->_extract_related_models_from_sub_params_array_keys($query_params[0], $query_info_carrier, 0);
3207
        }
3208
        if (array_key_exists('group_by', $query_params)) {
3209
            if (is_array($query_params['group_by'])) {
3210
                $this->_extract_related_models_from_sub_params_array_values(
3211
                    $query_params['group_by'],
3212
                    $query_info_carrier,
3213
                    'group_by'
3214
                );
3215
            } elseif (! empty ($query_params['group_by'])) {
3216
                $this->_extract_related_model_info_from_query_param(
3217
                    $query_params['group_by'],
@@ 3230-3235 (lines=6) @@
3227
                'having'
3228
            );
3229
        }
3230
        if (array_key_exists('order_by', $query_params)) {
3231
            if (is_array($query_params['order_by'])) {
3232
                $this->_extract_related_models_from_sub_params_array_keys(
3233
                    $query_params['order_by'],
3234
                    $query_info_carrier,
3235
                    'order_by'
3236
                );
3237
            } elseif (! empty($query_params['order_by'])) {
3238
                $this->_extract_related_model_info_from_query_param(