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.

UsersController   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 25
rs 10
wmc 5
1
class UsersController < ApplicationController
2
  def index
3
    @users = User.order('created_at DESC, id DESC')
4
  end
5
6
  def new
7
    @user = User.new
8
  end
9
10
  def create
11
    @user = User.new(user_params)
12
13
    if @user.save
14
      redirect_to users_url, notice: 'User was created and SMS notification was sent. Check server log for yourself!'
15
    else
16
      render :new
17
    end
18
  end
19
20
  private
21
22
  def user_params
23
    params.require(:user).permit(:name, :phone)
24
  end
25
end
26