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

@@ 427-439 (lines=13) @@
424
/*
425
 * Upload file or directory to host.
426
 */
427
function upload(string $source, string $destination, $config = [])
428
{
429
    $rsync = Deployer::get()->rsync;
430
    $host = currentHost();
431
    $source = parse($source);
432
    $destination = parse($destination);
433
434
    if ($host instanceof Localhost) {
435
        $rsync->call($host, $source, $destination, $config);
436
    } else {
437
        $rsync->call($host, $source, "{$host->hostname()}:$destination", $config);
438
    }
439
}
440
441
/*
442
 * Download file or directory from host
@@ 444-456 (lines=13) @@
441
/*
442
 * Download file or directory from host
443
 */
444
function download(string $source, string $destination, $config = [])
445
{
446
    $rsync = Deployer::get()->rsync;
447
    $host = currentHost();
448
    $source = parse($source);
449
    $destination = parse($destination);
450
451
    if ($host instanceof Localhost) {
452
        $rsync->call($host, $source, $destination, $config);
453
    } else {
454
        $rsync->call($host, "{$host->hostname()}:$source", $destination, $config);
455
    }
456
}
457
458
/**
459
 * Writes an info message.