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

src/Router/LeagueContainerAwareRouter.php 1 location

@@ 10-42 (lines=33) @@
7
/**
8
 * @package Bernard
9
 */
10
class LeagueContainerAwareRouter extends SimpleRouter
11
{
12
    private $container;
13
14
    /**
15
     * @param ContainerInterface $container
16
     * @param array              $receivers
17
     */
18
    public function __construct(ContainerInterface $container, array $receivers = array())
19
    {
20
        $this->container = $container;
21
22
        parent::__construct($receivers);
23
    }
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    protected function get($name)
29
    {
30
        $serviceId = parent::get($name);
31
32
        return $this->container->get($serviceId);
33
    }
34
35
    /**
36
     * {@inheritdoc}
37
     */
38
    protected function accepts($receiver)
39
    {
40
        return $this->container->has($receiver);
41
    }
42
}
43

src/Router/SymfonyContainerAwareRouter.php 1 location

@@ 10-42 (lines=33) @@
7
/**
8
 * @package Bernard
9
 */
10
class SymfonyContainerAwareRouter extends SimpleRouter
11
{
12
    private $container;
13
14
    /**
15
     * @param ContainerInterface $container
16
     * @param array              $receivers
17
     */
18
    public function __construct(ContainerInterface $container, array $receivers = [])
19
    {
20
        $this->container = $container;
21
22
        parent::__construct($receivers);
23
    }
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    protected function get($name)
29
    {
30
        $serviceId = parent::get($name);
31
32
        return $this->container->get($serviceId);
33
    }
34
35
    /**
36
     * {@inheritdoc}
37
     */
38
    protected function accepts($receiver)
39
    {
40
        return $this->container->has($receiver);
41
    }
42
}
43