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

src/Services/QueuedJobService.php 2 locations

@@ 421-438 (lines=18) @@
418
419
        // finally, find the list of broken jobs and send an email if there's some found
420
        $brokenJobs = QueuedJobDescriptor::get()->filter('JobStatus', QueuedJob::STATUS_BROKEN);
421
        if ($brokenJobs && $brokenJobs->count()) {
422
            $this->getLogger()->error(
423
                print_r(
424
                    [
425
                        'errno' => 0,
426
                        'errstr' => 'Broken jobs were found in the job queue',
427
                        'errfile' => __FILE__,
428
                        'errline' => __LINE__,
429
                        'errcontext' => [],
430
                    ],
431
                    true
432
                ),
433
                [
434
                    'file' => __FILE__,
435
                    'line' => __LINE__,
436
                ]
437
            );
438
        }
439
440
        return $stalledJobs->count();
441
    }
@@ 916-934 (lines=19) @@
913
                    if ($jobDescriptor) {
914
                        $this->copyJobToDescriptor($job, $jobDescriptor);
915
                        $jobDescriptor->write();
916
                    } else {
917
                        $this->getLogger()->error(
918
                            print_r(
919
                                [
920
                                    'errno' => 0,
921
                                    'errstr' => 'Job descriptor has been set to null',
922
                                    'errfile' => __FILE__,
923
                                    'errline' => __LINE__,
924
                                    'errcontext' => [],
925
                                ],
926
                                true
927
                            ),
928
                            [
929
                                'file' => __FILE__,
930
                                'line' => __LINE__,
931
                            ]
932
                        );
933
                        $broken = true;
934
                    }
935
                }
936
937
                // a last final save. The job is complete by now