Updated

app/helpers / signature_helper.rb

A
11 lines of codes
2 methods
2.4 complexity/method
7 churn
4.74 complexity
0 duplications
module SignatureHelper
  1. SignatureHelper has no descriptive comment
def signature_count(key, count, options = {}) t(:"#{key}.html", siganture_count_options(count, number_with_delimiter(count), options)) end private def siganture_count_options(count, formatted_count, options)
  1. SignatureHelper#siganture_count_options doesn't depend on instance state (maybe move it to another class?)
options.reverse_merge(scope: :"petitions.signature_counts", count: count, formatted_count: formatted_count) end end