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

src/Tasks/DummyQueuedJob.php 1 location

@@ 45-67 (lines=23) @@
42
        $this->times = array();
43
    }
44
45
    public function process()
46
    {
47
        $times = $this->times;
48
        // needed due to quirks with __set
49
        $time = DBDatetime::now()->Rfc2822();
50
        $times[] = $time;
51
        $this->times = $times;
52
53
        $this->addMessage('Updated time to ' . $time);
54
        sleep(1);
55
56
        // make sure we're incrementing
57
        $this->currentStep++;
58
59
        // if ($this->currentStep > 1) {
60
        //     $this->currentStep = 1;
61
        // }
62
63
        // and checking whether we're complete
64
        if ($this->currentStep >= $this->totalSteps) {
65
            $this->isComplete = true;
66
        }
67
    }
68
}
69

tests/QueuedJobsTest/TestQueuedJob.php 1 location

@@ 36-54 (lines=19) @@
33
        $this->totalSteps = 5;
34
    }
35
36
    public function process()
37
    {
38
        $times = $this->times;
39
        // needed due to quirks with __set
40
        $time = DBDatetime::now()->Rfc2822();
41
        $times[] = $time;
42
        $this->times = $times;
43
44
        $this->addMessage('Updated time to ' . $time);
45
        sleep(1);
46
47
        // make sure we're incrementing
48
        $this->currentStep++;
49
50
        // and checking whether we're complete
51
        if ($this->currentStep == 5) {
52
            $this->isComplete = true;
53
        }
54
    }
55
}
56