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

app/Http/Controllers/Admin/BaseController.php 1 location

@@ 63-80 (lines=18) @@
60
     * @param  \Illuminate\Http\Request  $request
61
     * @return \Illuminate\Http\RedirectResponse
62
     */
63
    public function postSettings(Request $request)
64
    {
65
        $validator = Validator::make($request->all(), [
66
            'company' => 'required|between:1,256',
67
            // 'default_language' => 'required|alpha_dash|min:2|max:5',
68
        ]);
69
70
        if ($validator->fails()) {
71
            return redirect()->route('admin.settings')->withErrors($validator->errors())->withInput();
72
        }
73
74
        Settings::set('company', $request->input('company'));
75
        // Settings::set('default_language', $request->input('default_language'));
76
77
        Alert::success('Settings have been successfully updated.')->flash();
78
79
        return redirect()->route('admin.settings');
80
    }
81
}
82

app/Http/Controllers/Base/SecurityController.php 1 location

@@ 101-117 (lines=17) @@
98
     * @param  \Illuminate\Http\Request  $request
99
     * @return \Illuminate\Http\RedirectResponse
100
     */
101
    public function disableTotp(Request $request)
102
    {
103
        if (! $request->has('token')) {
104
            Alert::danger('Missing required `token` field in request.')->flash();
105
106
            return redirect()->route('account.security');
107
        }
108
109
        $user = $request->user();
110
        if ($user->toggleTotp($request->input('token'))) {
111
            return redirect()->route('account.security');
112
        }
113
114
        Alert::danger('The TOTP token provided was invalid.')->flash();
115
116
        return redirect()->route('account.security');
117
    }
118
119
    /**
120
     * Revokes a user session.