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

app/Repositories/PackRepository.php 2 locations

@@ 68-70 (lines=3) @@
65
                throw new DisplayException('The file provided does not appear to be valid.');
66
            }
67
68
            if (! in_array($data['file_upload']->getMimeType(), ['application/gzip', 'application/x-gzip'])) {
69
                throw new DisplayException('The file provided (' . $data['file_upload']->getMimeType() . ') does not meet the required filetype of application/gzip.');
70
            }
71
        }
72
73
        return DB::transaction(function () use ($data) {
@@ 119-125 (lines=7) @@
116
            throw new DisplayException('The file provided does not appear to be valid.');
117
        }
118
119
        if (! in_array($data['file_upload']->getMimeType(), [
120
            'application/zip',
121
            'text/plain',
122
            'application/json',
123
        ])) {
124
            throw new DisplayException('The file provided (' . $data['file_upload']->getMimeType() . ') does not meet the required filetypes of application/zip or application/json.');
125
        }
126
127
        if ($data['file_upload']->getMimeType() === 'application/zip') {
128
            $zip = new \ZipArchive;