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

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