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

@@ 46-52 (lines=7) @@
43
    end
44
  end
45
46
  def recording_default_visibility_string
47
    if Setting.find_or_create_by!(provider: user_settings_provider)
48
              .get_value("Default Recording Visibility") == "public"
49
      I18n.t("administrator.site_settings.recording_visibility.public")
50
    else
51
      I18n.t("administrator.site_settings.recording_visibility.private")
52
    end
53
  end
54
55
  def registration_method_string
@@ 38-44 (lines=7) @@
35
    registration_method == Rails.configuration.registration_methods[:approval]
36
  end
37
38
  def room_authentication_string
39
    if Setting.find_or_create_by!(provider: user_settings_provider).get_value("Room Authentication") == "true"
40
      I18n.t("administrator.site_settings.authentication.enabled")
41
    else
42
      I18n.t("administrator.site_settings.authentication.disabled")
43
    end
44
  end
45
46
  def recording_default_visibility_string
47
    if Setting.find_or_create_by!(provider: user_settings_provider)