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/Repositories/ServerRepository.php 2 locations

@@ 163-170 (lines=8) @@
160
        }
161
162
        // Validate the Pack
163
        if (! isset($data['pack_id']) || (int) $data['pack_id'] < 1) {
164
            $data['pack_id'] = null;
165
        } else {
166
            $pack = Models\Pack::where('id', $data['pack_id'])->where('option_id', $data['option_id'])->first();
167
            if (! $pack) {
168
                throw new DisplayException('The requested service pack does not seem to exist for this combination.');
169
            }
170
        }
171
172
        // Load up the Service Information
173
        $service = Models\Service::find($option->service_id);
@@ 780-787 (lines=8) @@
777
        }
778
779
        // Validate the Pack
780
        if (! isset($data['pack_id']) || (int) $data['pack_id'] < 1) {
781
            $data['pack_id'] = null;
782
        } else {
783
            $pack = Models\Pack::where('id', $data['pack_id'])->where('option_id', $data['option_id'])->first();
784
            if (! $pack) {
785
                throw new DisplayException('The requested service pack does not seem to exist for this combination.');
786
            }
787
        }
788
789
        return DB::transaction(function () use ($admin, $data, $server) {
790
            $server->installed = 0;