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

@@ 297-300 (lines=4) @@
294
    redirect_to admins_path if current_user && current_user&.has_role?(:super_admin)
295
  end
296
297
  def auth_required
298
    Setting.find_or_create_by!(provider: user_settings_provider).get_value("Room Authentication") == "true" &&
299
      current_user.nil?
300
  end
301
302
  def room_limit_exceeded
303
    limit = Setting.find_or_create_by!(provider: user_settings_provider).get_value("Room Limit").to_i