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

app/Console/Commands/RebuildServer.php 1 location

@@ 86-93 (lines=8) @@
83
        $results = collect([]);
84
        foreach ($servers as $server) {
85
            try {
86
                $environment = $server->option->variables->map(function ($item, $key) use ($server) {
87
                    $display = $server->variables->where('variable_id', $item->id)->pluck('variable_value')->first();
88
89
                    return [
90
                        'variable' => $item->env_variable,
91
                        'value' => (! is_null($display)) ? $display : $item->default_value,
92
                    ];
93
                });
94
95
                $server->node->guzzleClient([
96
                    'X-Access-Server' => $server->uuid,

app/Repositories/ServerRepository.php 1 location

@@ 681-688 (lines=8) @@
678
679
            // Reload Variables
680
            $server->load('variables');
681
            $environment = $server->option->variables->map(function ($item, $key) use ($server) {
682
                $display = $server->variables->where('variable_id', $item->id)->pluck('variable_value')->first();
683
684
                return [
685
                    'variable' => $item->env_variable,
686
                    'value' => (! is_null($display)) ? $display : $item->default_value,
687
                ];
688
            });
689
690
            $server->node->guzzleClient([
691
                'X-Access-Server' => $server->uuid,