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

src/functions.php 2 locations

@@ 410-435 (lines=26) @@
407
 * @param string $destination
408
 * @param array $config
409
 */
410
function upload($source, $destination, array $config = [])
411
{
412
    $rsync = Deployer::get()->rsync;
413
    $host = currentHost();
414
    $source = parse($source);
415
    $destination = parse($destination);
416
417
    if ($host instanceof Localhost) {
418
        $rsync->call($host, $source, $destination, $config);
419
    } else {
420
        if (!isset($config['options']) || !is_array($config['options'])) {
421
            $config['options'] = [];
422
        }
423
424
        $sshArguments = $host->getSshArguments()->getCliArguments();
425
        if (empty($sshArguments) === false) {
426
            $config['options'][] = "-e 'ssh $sshArguments'";
427
        }
428
429
        if ($host->has("become")) {
430
            $config['options'][] = "--rsync-path='sudo -H -u " . $host->get('become') . " rsync'";
431
        }
432
433
        $rsync->call($host, $source, "{$host->hostname()}:$destination", $config);
434
    }
435
}
436
437
/**
438
 * Download file or directory from host
@@ 444-469 (lines=26) @@
441
 * @param string $source
442
 * @param array $config
443
 */
444
function download($source, $destination, array $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
        if (!isset($config['options']) || !is_array($config['options'])) {
455
            $config['options'] = [];
456
        }
457
458
        $sshArguments = $host->getSshArguments()->getCliArguments();
459
        if (empty($sshArguments) === false) {
460
            $config['options'][] = "-e 'ssh $sshArguments'";
461
        }
462
463
        if ($host->has("become")) {
464
            $config['options'][] = "--rsync-path='sudo -H -u " . $host->get('become') . " rsync'";
465
        }
466
467
        $rsync->call($host, "{$host->hostname()}:$source", $destination, $config);
468
    }
469
}
470
471
/**
472
 * Writes an info message.