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

app/Http/Controllers/API/User/ServerController.php 2 locations

@@ 66-77 (lines=12) @@
63
     * @param  string                    $uuid
64
     * @return \Illuminate\Http\Response
65
     */
66
    public function power(Request $request, $uuid)
67
    {
68
        $this->authorize('user.server-power', $request->apiKey());
69
70
        $server = Server::byUuid($uuid);
71
        $request->user()->can('power-' . $request->input('action'), $server);
72
73
        $repo = new PowerRepository($server);
74
        $repo->do($request->input('action'));
75
76
        return response('', 204)->header('Content-Type', 'application/json');
77
    }
78
79
    /**
80
     * Controller to handle base request for individual server information.
@@ 86-97 (lines=12) @@
83
     * @param  string                    $uuid
84
     * @return \Illuminate\Http\Response
85
     */
86
    public function command(Request $request, $uuid)
87
    {
88
        $this->authorize('user.server-command', $request->apiKey());
89
90
        $server = Server::byUuid($uuid);
91
        $request->user()->can('send-command', $server);
92
93
        $repo = new CommandRepository($server);
94
        $repo->send($request->input('command'));
95
96
        return response('', 204)->header('Content-Type', 'application/json');
97
    }
98
}
99