Code Duplication    Length = 6-7 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 3191-3197 (lines=7) @@
3188
        if (array_key_exists(0, $query_params)) {
3189
            $this->_extract_related_models_from_sub_params_array_keys($query_params[0], $query_info_carrier, 0);
3190
        }
3191
        if (array_key_exists('group_by', $query_params)) {
3192
            if (is_array($query_params['group_by'])) {
3193
                $this->_extract_related_models_from_sub_params_array_values(
3194
                    $query_params['group_by'],
3195
                    $query_info_carrier,
3196
                    'group_by'
3197
                );
3198
            } elseif (! empty ($query_params['group_by'])) {
3199
                $this->_extract_related_model_info_from_query_param(
3200
                    $query_params['group_by'],
@@ 3213-3218 (lines=6) @@
3210
                'having'
3211
            );
3212
        }
3213
        if (array_key_exists('order_by', $query_params)) {
3214
            if (is_array($query_params['order_by'])) {
3215
                $this->_extract_related_models_from_sub_params_array_keys(
3216
                    $query_params['order_by'],
3217
                    $query_info_carrier,
3218
                    'order_by'
3219
                );
3220
            } elseif (! empty($query_params['order_by'])) {
3221
                $this->_extract_related_model_info_from_query_param(