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

app/helpers/admins_helper.rb 2 locations

@@ 58-64 (lines=7) @@
55
    end
56
  end
57
58
  def recording_default_visibility_string
59
    if Setting.find_or_create_by!(provider: user_settings_provider)
60
              .get_value("Default Recording Visibility") == "public"
61
      I18n.t("administrator.site_settings.recording_visibility.public")
62
    else
63
      I18n.t("administrator.site_settings.recording_visibility.private")
64
    end
65
  end
66
67
  def registration_method_string
@@ 50-56 (lines=7) @@
47
    registration_method == Rails.configuration.registration_methods[:approval]
48
  end
49
50
  def room_authentication_string
51
    if Setting.find_or_create_by!(provider: user_settings_provider).get_value("Room Authentication") == "true"
52
      I18n.t("administrator.site_settings.authentication.enabled")
53
    else
54
      I18n.t("administrator.site_settings.authentication.disabled")
55
    end
56
  end
57
58
  def recording_default_visibility_string
59
    if Setting.find_or_create_by!(provider: user_settings_provider)