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

app/Http/Controllers/Admin/ServersController.php 2 locations

@@ 308-331 (lines=24) @@
305
        ])->withInput();
306
    }
307
308
    public function postUpdateContainerDetails(Request $request, $id)
309
    {
310
        try {
311
            $server = new ServerRepository;
312
            $server->updateContainer($id, [
313
                'image' => $request->input('docker_image'),
314
            ]);
315
            Alert::success('Successfully updated this server\'s docker image.')->flash();
316
        } catch (DisplayValidationException $ex) {
317
            return redirect()->route('admin.servers.view', [
318
                'id' => $id,
319
                'tab' => 'tab_details',
320
            ])->withErrors(json_decode($ex->getMessage()))->withInput();
321
        } catch (DisplayException $ex) {
322
            Alert::danger($ex->getMessage())->flash();
323
        } catch (\Exception $ex) {
324
            Log::error($ex);
325
            Alert::danger('An unhandled exception occured while attemping to update this server\'s docker image. Please try again.')->flash();
326
        }
327
328
        return redirect()->route('admin.servers.view', [
329
            'id' => $id,
330
            'tab' => 'tab_details',
331
        ]);
332
    }
333
334
    public function postUpdateServerToggleBuild(Request $request, $id)
@@ 457-479 (lines=23) @@
454
        }
455
    }
456
457
    public function postDatabase(Request $request, $id)
458
    {
459
        try {
460
            $repo = new DatabaseRepository;
461
            $repo->create($id, $request->except([
462
                '_token',
463
            ]));
464
            Alert::success('Added new database to this server.')->flash();
465
        } catch (DisplayValidationException $ex) {
466
            return redirect()->route('admin.servers.view', [
467
                'id' => $id,
468
                'tab' => 'tab_database',
469
            ])->withInput()->withErrors(json_decode($ex->getMessage()))->withInput();
470
        } catch (\Exception $ex) {
471
            Log::error($ex);
472
            Alert::danger('An exception occured while attempting to add a new database for this server.')->flash();
473
        }
474
475
        return redirect()->route('admin.servers.view', [
476
            'id' => $id,
477
            'tab' => 'tab_database',
478
        ])->withInput();
479
    }
480
481
    public function postSuspendServer(Request $request, $id)
482
    {