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

@@ 541-548 (lines=8) @@
538
 * @param string $name
539
 * @param mixed $value
540
 */
541
function set($name, $value)
542
{
543
    if (!Context::has()) {
544
        Deployer::get()->config->set($name, $value);
545
    } else {
546
        Context::get()->getConfig()->set($name, $value);
547
    }
548
}
549
550
/**
551
 * Merge new config params to existing config array.
@@ 556-563 (lines=8) @@
553
 * @param string $name
554
 * @param array $array
555
 */
556
function add($name, $array)
557
{
558
    if (!Context::has()) {
559
        Deployer::get()->config->add($name, $array);
560
    } else {
561
        Context::get()->getConfig()->add($name, $array);
562
    }
563
}
564
565
/**
566
 * Get configuration value.
@@ 572-579 (lines=8) @@
569
 * @param mixed|null $default
570
 * @return mixed
571
 */
572
function get($name, $default = null)
573
{
574
    if (!Context::has()) {
575
        return Deployer::get()->config->get($name, $default);
576
    } else {
577
        return Context::get()->getConfig()->get($name, $default);
578
    }
579
}
580
581
/**
582
 * Check if there is such configuration option.
@@ 587-594 (lines=8) @@
584
 * @param string $name
585
 * @return boolean
586
 */
587
function has($name)
588
{
589
    if (!Context::has()) {
590
        return Deployer::get()->config->has($name);
591
    } else {
592
        return Context::get()->getConfig()->has($name);
593
    }
594
}
595
596
/**
597
 * @param string $message