GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 7-7 lines in 2 locations

lib/omniauth_options.rb 1 location

@@ 58-64 (lines=7) @@
55
  end
56
57
  # Parses the url for the user domain
58
  def parse_user_domain(hostname)
59
    return hostname.split('.').first if Rails.configuration.url_host.empty?
60
    Rails.configuration.url_host.split(',').each do |url_host|
61
      return hostname.chomp(url_host).chomp('.') if hostname.include?(url_host)
62
    end
63
    ''
64
  end
65
66
  # Generates a checksum to use alongside the omniauth request
67
  def generate_checksum(user_domain, redirect_url, secret)

app/controllers/application_controller.rb 1 location

@@ 176-182 (lines=7) @@
173
  helper_method :configured_providers
174
175
  # Parses the url for the user domain
176
  def parse_user_domain(hostname)
177
    return hostname.split('.').first if Rails.configuration.url_host.empty?
178
    Rails.configuration.url_host.split(',').each do |url_host|
179
      return hostname.chomp(url_host).chomp('.') if hostname.include?(url_host)
180
    end
181
    ''
182
  end
183
184
  # Include user domain in lograge logs
185
  def append_info_to_payload(payload)