Code Duplication    Length = 8-8 lines in 2 locations

src/Authentication/AuthenticationController.php 1 location

@@ 17-24 (lines=8) @@
14
{
15
    private $container;
16
17
    public function __construct(ContainerInterface $container)
18
    {
19
        if ($container instanceof Container) {
20
            $this->container = $container;
21
        } else {
22
            $this->container = new Container($container);
23
        }
24
    }
25
26
    /**
27
     * @return bool

src/Session/SessionController.php 1 location

@@ 17-24 (lines=8) @@
14
    private $container;
15
    private $session;
16
17
    public function __construct(ContainerInterface $container)
18
    {
19
        if ($container instanceof Container) {
20
            $this->container = $container;
21
        } else {
22
            $this->container = new Container($container);
23
        }
24
    }
25
26
    /**
27
     * @return SessionEntity|null