app/services/trade/search_params.rb
Method initialize
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(params)
sanitized_params = {
taxon_concepts_ids: sanitise_integer_array(params[:taxon_concepts_ids]),
reported_taxon_concepts_ids: sanitise_integer_array(params[:reported_taxon_concepts_ids]),
appendices: sanitise_string_array(params[:appendices]),