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 = 4-4 lines in 2 locations

app/helpers/rooms_helper.rb 1 location

@@ 26-29 (lines=4) @@
23
    "http://calendar.google.com/calendar/r/eventedit?text=#{@room.name}&location=#{request.base_url + request.fullpath}"
24
  end
25
26
  def room_authentication_required
27
    Setting.find_or_create_by!(provider: user_settings_provider).get_value("Room Authentication") == "true" &&
28
      current_user.nil?
29
  end
30
31
  def number_of_rooms_allowed
32
    Setting.find_or_create_by!(provider: user_settings_provider).get_value("Room Limit").to_i

app/controllers/rooms_controller.rb 1 location

@@ 280-283 (lines=4) @@
277
    redirect_to admins_path if current_user && current_user&.has_role?(:super_admin)
278
  end
279
280
  def auth_required
281
    Setting.find_or_create_by!(provider: user_settings_provider).get_value("Room Authentication") == "true" &&
282
      current_user.nil?
283
  end
284
285
  def room_limit_exceeded
286
    limit = Setting.find_or_create_by!(provider: user_settings_provider).get_value("Room Limit").to_i