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 = 15-18 lines in 3 locations

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

@@ 90-104 (lines=15) @@
87
     * @param  int                       $id
88
     * @return \Illuminate\Http\RedirectResponse
89
     */
90
    public function delete(Request $request, $id)
91
    {
92
        try {
93
            $repo = new UserRepository;
94
            $repo->delete($id);
95
            Alert::success('Successfully deleted user from system.')->flash();
96
97
            return redirect()->route('admin.users');
98
        } catch (DisplayException $ex) {
99
            Alert::danger($ex->getMessage())->flash();
100
        } catch (\Exception $ex) {
101
            Log::error($ex);
102
            Alert::danger('An exception was encountered while attempting to delete this user.')->flash();
103
        }
104
105
        return redirect()->route('admin.users.view', $id);
106
    }
107

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

@@ 325-340 (lines=16) @@
322
     * @param  int                       $id
323
     * @return \Illuminate\Http\RedirectResponse
324
     */
325
    public function toggleInstall(Request $request, $id)
326
    {
327
        $repo = new ServerRepository;
328
        try {
329
            $repo->toggleInstall($id);
330
331
            Alert::success('Server install status was successfully toggled.')->flash();
332
        } catch (DisplayException $ex) {
333
            Alert::danger($ex->getMessage())->flash();
334
        } catch (\Exception $ex) {
335
            Log::error($ex);
336
            Alert::danger('An unhandled exception occured while attemping to toggle this servers status. This error has been logged.')->flash();
337
        }
338
339
        return redirect()->route('admin.servers.view.manage', $id);
340
    }
341
342
    /**
343
     * Reinstalls the server with the currently assigned pack and service.

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

@@ 338-355 (lines=18) @@
335
     * @param  int                       $id
336
     * @return \Illuminate\Http\RedirectResponse
337
     */
338
    public function delete(Request $request, $id)
339
    {
340
        $repo = new NodeRepository;
341
342
        try {
343
            $repo->delete($id);
344
            Alert::success('Successfully deleted the requested node from the panel.')->flash();
345
346
            return redirect()->route('admin.nodes');
347
        } catch (DisplayException $ex) {
348
            Alert::danger($ex->getMessage())->flash();
349
        } catch (\Exception $ex) {
350
            Log::error($ex);
351
            Alert::danger('An unhandled exception occured while attempting to delete this node. Please try again.')->flash();
352
        }
353
354
        return redirect()->route('admin.nodes.view', $id);
355
    }
356
357
    /**
358
     * Returns the configuration token to auto-deploy a node.