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

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