Code Duplication    Length = 6-7 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 3181-3187 (lines=7) @@
3178
        if (array_key_exists(0, $query_params)) {
3179
            $this->_extract_related_models_from_sub_params_array_keys($query_params[0], $query_info_carrier, 0);
3180
        }
3181
        if (array_key_exists('group_by', $query_params)) {
3182
            if (is_array($query_params['group_by'])) {
3183
                $this->_extract_related_models_from_sub_params_array_values(
3184
                    $query_params['group_by'],
3185
                    $query_info_carrier,
3186
                    'group_by'
3187
                );
3188
            } elseif (! empty($query_params['group_by'])) {
3189
                $this->_extract_related_model_info_from_query_param(
3190
                    $query_params['group_by'],
@@ 3203-3208 (lines=6) @@
3200
                'having'
3201
            );
3202
        }
3203
        if (array_key_exists('order_by', $query_params)) {
3204
            if (is_array($query_params['order_by'])) {
3205
                $this->_extract_related_models_from_sub_params_array_keys(
3206
                    $query_params['order_by'],
3207
                    $query_info_carrier,
3208
                    'order_by'
3209
                );
3210
            } elseif (! empty($query_params['order_by'])) {
3211
                $this->_extract_related_model_info_from_query_param(