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

app/Repositories/APIRepository.php 2 locations

@@ 162-177 (lines=16) @@
159
            $key->save();
160
161
            $totalPermissions = 0;
162
            if (isset($data['permissions'])) {
163
                foreach ($data['permissions'] as $permNode) {
164
                    if (! strpos($permNode, ':')) {
165
                        continue;
166
                    }
167
168
                    list($toss, $permission) = explode(':', $permNode);
169
                    if (in_array($permission, $this->permissions['user'])) {
170
                        $totalPermissions++;
171
                        $model = new Models\APIPermission;
172
                        $model->fill([
173
                            'key_id' => $key->id,
174
                            'permission' => 'api.user.' . $permission,
175
                        ]);
176
                        $model->save();
177
                    }
178
                }
179
            }
180
@@ 181-196 (lines=16) @@
178
                }
179
            }
180
181
            if ($this->user->root_admin === 1 && isset($data['adminPermissions'])) {
182
                foreach ($data['adminPermissions'] as $permNode) {
183
                    if (! strpos($permNode, ':')) {
184
                        continue;
185
                    }
186
187
                    list($toss, $permission) = explode(':', $permNode);
188
                    if (in_array($permission, $this->permissions['admin'])) {
189
                        $totalPermissions++;
190
                        $model = new Models\APIPermission;
191
                        $model->fill([
192
                            'key_id' => $key->id,
193
                            'permission' => 'api.admin.' . $permission,
194
                        ]);
195
                        $model->save();
196
                    }
197
                }
198
            }
199