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

src/functions.php 2 locations

@@ 415-434 (lines=20) @@
412
 * @param string $destination
413
 * @param array $config
414
 */
415
function upload($source, $destination, array $config = [])
416
{
417
    $rsync = Deployer::get()->rsync;
418
    $host = Context::get()->getHost();
419
    $source = parse($source);
420
    $destination = parse($destination);
421
422
    if ($host instanceof Localhost) {
423
        $rsync->call($host->getHostname(), $source, $destination, $config);
424
    } else {
425
        $sshArguments = $host->getSshArguments()->getCliArguments();
426
        if (empty($sshArguments) === false) {
427
            if (!isset($config['options']) || !is_array($config['options'])) {
428
                $config['options'] = [];
429
            }
430
            $config['options'][] = "-e 'ssh $sshArguments'";
431
        }
432
        $rsync->call($host->getHostname(), $source, "$host:$destination", $config);
433
    }
434
}
435
436
/**
437
 * Download file or directory from host
@@ 443-462 (lines=20) @@
440
 * @param string $source
441
 * @param array $config
442
 */
443
function download($source, $destination, array $config = [])
444
{
445
    $rsync = Deployer::get()->rsync;
446
    $host = Context::get()->getHost();
447
    $source = parse($source);
448
    $destination = parse($destination);
449
450
    if ($host instanceof Localhost) {
451
        $rsync->call($host->getHostname(), $source, $destination, $config);
452
    } else {
453
        $sshArguments = $host->getSshArguments()->getCliArguments();
454
        if (empty($sshArguments) === false) {
455
            if (!isset($config['options']) || !is_array($config['options'])) {
456
                $config['options'] = [];
457
            }
458
            $config['options'][] = "-e 'ssh $sshArguments'";
459
        }
460
        $rsync->call($host->getHostname(), "$host:$source", $destination, $config);
461
    }
462
}
463
464
/**
465
 * Writes a message to the output and adds a newline at the end.