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

@@ 695-702 (lines=8) @@
692
693
        // Reload Variables
694
        $server->load('variables');
695
        return $server->option->variables->map(function ($item, $key) use ($server) {
696
            $display = $server->variables->where('variable_id', $item->id)->pluck('variable_value')->first();
697
698
            return [
699
                'variable' => $item->env_variable,
700
                'value' => (! is_null($display)) ? $display : $item->default_value,
701
            ];
702
        });
703
    }
704
705
    /**