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 = 8-8 lines in 4 locations

src/functions.php 4 locations

@@ 501-508 (lines=8) @@
498
 * @param string $name
499
 * @param mixed $value
500
 */
501
function set($name, $value)
502
{
503
    if (!Context::has()) {
504
        Deployer::get()->config->set($name, $value);
505
    } else {
506
        Context::get()->getConfig()->set($name, $value);
507
    }
508
}
509
510
/**
511
 * Merge new config params to existing config array.
@@ 516-523 (lines=8) @@
513
 * @param string $name
514
 * @param array $array
515
 */
516
function add($name, $array)
517
{
518
    if (!Context::has()) {
519
        Deployer::get()->config->add($name, $array);
520
    } else {
521
        Context::get()->getConfig()->add($name, $array);
522
    }
523
}
524
525
/**
526
 * Get configuration value.
@@ 532-539 (lines=8) @@
529
 * @param mixed|null $default
530
 * @return mixed
531
 */
532
function get($name, $default = null)
533
{
534
    if (!Context::has()) {
535
        return Deployer::get()->config->get($name, $default);
536
    } else {
537
        return Context::get()->getConfig()->get($name, $default);
538
    }
539
}
540
541
/**
542
 * Check if there is such configuration option.
@@ 547-554 (lines=8) @@
544
 * @param string $name
545
 * @return boolean
546
 */
547
function has($name)
548
{
549
    if (!Context::has()) {
550
        return Deployer::get()->config->has($name);
551
    } else {
552
        return Context::get()->getConfig()->has($name);
553
    }
554
}
555
556
/**
557
 * @param string $message