Code Duplication    Length = 6-7 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 3161-3167 (lines=7) @@
3158
        if (array_key_exists(0, $query_params)) {
3159
            $this->_extract_related_models_from_sub_params_array_keys($query_params[0], $query_info_carrier, 0);
3160
        }
3161
        if (array_key_exists('group_by', $query_params)) {
3162
            if (is_array($query_params['group_by'])) {
3163
                $this->_extract_related_models_from_sub_params_array_values(
3164
                    $query_params['group_by'],
3165
                    $query_info_carrier,
3166
                    'group_by'
3167
                );
3168
            } elseif (! empty ($query_params['group_by'])) {
3169
                $this->_extract_related_model_info_from_query_param(
3170
                    $query_params['group_by'],
@@ 3183-3188 (lines=6) @@
3180
                'having'
3181
            );
3182
        }
3183
        if (array_key_exists('order_by', $query_params)) {
3184
            if (is_array($query_params['order_by'])) {
3185
                $this->_extract_related_models_from_sub_params_array_keys(
3186
                    $query_params['order_by'],
3187
                    $query_info_carrier,
3188
                    'order_by'
3189
                );
3190
            } elseif (! empty($query_params['order_by'])) {
3191
                $this->_extract_related_model_info_from_query_param(