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

app/Http/Controllers/Server/ServerController.php 1 location

@@ 285-304 (lines=20) @@
282
        ]);
283
    }
284
285
    public function postSettingsSFTP(Request $request, $uuid)
286
    {
287
        $server = Models\Server::byUuid($uuid);
288
        $this->authorize('reset-sftp', $server);
289
290
        try {
291
            $repo = new ServerRepository;
292
            $repo->updateSFTPPassword($server->id, $request->input('sftp_pass'));
293
            Alert::success('Successfully updated this servers SFTP password.')->flash();
294
        } catch (DisplayValidationException $ex) {
295
            return redirect()->route('server.settings.sftp', $uuid)->withErrors(json_decode($ex->getMessage()));
296
        } catch (DisplayException $ex) {
297
            Alert::danger($ex->getMessage())->flash();
298
        } catch (\Exception $ex) {
299
            Log::error($ex);
300
            Alert::danger('An unknown error occured while attempting to update this server\'s SFTP settings.')->flash();
301
        }
302
303
        return redirect()->route('server.settings.sftp', $uuid);
304
    }
305
306
    public function postSettingsStartup(Request $request, $uuid)
307
    {

app/Http/Controllers/Server/TaskController.php 1 location

@@ 73-95 (lines=23) @@
70
        ]);
71
    }
72
73
    public function postNew(Request $request, $uuid)
74
    {
75
        $server = Models\Server::byUuid($uuid);
76
        $this->authorize('create-task', $server);
77
78
        try {
79
            $repo = new Repositories\TaskRepository;
80
            $repo->create($server->id, $request->except([
81
                '_token',
82
            ]));
83
84
            return redirect()->route('server.tasks', $uuid);
85
        } catch (DisplayValidationException $ex) {
86
            return redirect()->route('server.tasks.new', $uuid)->withErrors(json_decode($ex->getMessage()))->withInput();
87
        } catch (DisplayException $ex) {
88
            Alert::danger($ex->getMessage())->flash();
89
        } catch (\Exception $ex) {
90
            Log::error($ex);
91
            Alert::danger('An unknown error occured while attempting to create this task.')->flash();
92
        }
93
94
        return redirect()->route('server.tasks.new', $uuid);
95
    }
96
97
    public function deleteTask(Request $request, $uuid, $id)
98
    {