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

src/functions.php 2 locations

@@ 214-218 (lines=5) @@
211
 */
212
function after($task, $do)
213
{
214
    if (is_callable($do)) {
215
        $newTask = task("after:$task", $do);
216
        after($task, "after:$task");
217
        return $newTask;
218
    }
219
    task($task)->addAfter($do);
220
}
221
@@ 231-235 (lines=5) @@
228
 */
229
function fail($task, $do)
230
{
231
    if (is_callable($do)) {
232
        $newTask = task("fail:$task", $do);
233
        fail($task, "fail:$task");
234
        return $newTask;
235
    }
236
    $deployer = Deployer::get();
237
    $deployer->fail->set($task, $do);
238
}