Code Duplication    Length = 6-7 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

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