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

src/functions.php 2 locations

@@ 439-451 (lines=13) @@
436
/*
437
 * Upload file or directory to host.
438
 */
439
function upload(string $source, string $destination, $config = [])
440
{
441
    $rsync = Deployer::get()->rsync;
442
    $host = currentHost();
443
    $source = parse($source);
444
    $destination = parse($destination);
445
446
    if ($host instanceof Localhost) {
447
        $rsync->call($host, $source, $destination, $config);
448
    } else {
449
        $rsync->call($host, $source, "{$host->hostname()}:$destination", $config);
450
    }
451
}
452
453
/*
454
 * Download file or directory from host
@@ 456-468 (lines=13) @@
453
/*
454
 * Download file or directory from host
455
 */
456
function download(string $source, string $destination, $config = [])
457
{
458
    $rsync = Deployer::get()->rsync;
459
    $host = currentHost();
460
    $source = parse($source);
461
    $destination = parse($destination);
462
463
    if ($host instanceof Localhost) {
464
        $rsync->call($host, $source, $destination, $config);
465
    } else {
466
        $rsync->call($host, "{$host->hostname()}:$source", $destination, $config);
467
    }
468
}
469
470
/**
471
 * Writes an info message.