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

app/Repositories/SubuserRepository.php 2 locations

@@ 160-172 (lines=13) @@
157
            ]);
158
159
            $daemonPermissions = $this->coreDaemonPermissions;
160
            foreach ($data['permissions'] as $permission) {
161
                if (array_key_exists($permission, $this->permissions)) {
162
                    // Build the daemon permissions array for sending.
163
                    if (! is_null($this->permissions[$permission])) {
164
                        array_push($daemonPermissions, $this->permissions[$permission]);
165
                    }
166
167
                    Models\Permission::create([
168
                        'subuser_id' => $subuser->id,
169
                        'permission' => $permission,
170
                    ]);
171
                }
172
            }
173
174
            // Contact Daemon
175
            // We contact even if they don't have any daemon permissions to overwrite
@@ 279-290 (lines=12) @@
276
            }
277
278
            $daemonPermissions = $this->coreDaemonPermissions;
279
            foreach ($data['permissions'] as $permission) {
280
                if (array_key_exists($permission, $this->permissions)) {
281
                    // Build the daemon permissions array for sending.
282
                    if (! is_null($this->permissions[$permission])) {
283
                        array_push($daemonPermissions, $this->permissions[$permission]);
284
                    }
285
                    Models\Permission::create([
286
                        'subuser_id' => $subuser->id,
287
                        'permission' => $permission,
288
                    ]);
289
                }
290
            }
291
292
            // Contact Daemon
293
            // We contact even if they don't have any daemon permissions to overwrite