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

src/Services/QueuedJobService.php 2 locations

@@ 778-786 (lines=9) @@
775
                        );
776
                        break;
777
                    }
778
                    if ($jobDescriptor->JobStatus != QueuedJob::STATUS_RUN) {
779
                        // we've been paused by something, so we'll just exit
780
                        $job->addMessage(_t(
781
                            __CLASS__ . '.JOB_PAUSED',
782
                            'Job paused at {time}',
783
                            ['time' => DBDatetime::now()->Rfc2822()]
784
                        ));
785
                        $broken = true;
786
                    }
787
788
                    if (!$broken) {
789
                        // Inject real-time log handler
@@ 874-884 (lines=11) @@
871
                            $stallCount++;
872
                        }
873
874
                        if ($stallCount > static::config()->get('stall_threshold')) {
875
                            $broken = true;
876
                            $job->addMessage(
877
                                _t(
878
                                    __CLASS__ . '.JOB_STALLED',
879
                                    'Job stalled after {attempts} attempts - please check',
880
                                    ['attempts' => $stallCount]
881
                                )
882
                            );
883
                            $jobDescriptor->JobStatus = QueuedJob::STATUS_BROKEN;
884
                        }
885
886
                        // now we'll be good and check our memory usage. If it is too high, we'll set the job to
887
                        // a 'Waiting' state, and let the next processing run pick up the job.