Code Duplication    Length = 9-9 lines in 2 locations

src/Doctrine/Session/SessionRepository.php 1 location

@@ 18-26 (lines=9) @@
15
{
16
    private $container;
17
18
    public function __construct(EntityManager $em, ClassMetadata $class, ContainerInterface $container)
19
    {
20
        parent::__construct($em, $class);
21
        if ($container instanceof Container) {
22
            $this->container = $container;
23
        } else {
24
            $this->container = new Container($container);
25
        }
26
    }
27
28
    public function save(SessionEntityInterface $session)
29
    {

src/Doctrine/Group/GroupRepository.php 1 location

@@ 18-26 (lines=9) @@
15
{
16
    private $container;
17
18
    public function __construct(EntityManager $em, ClassMetadata $class, ContainerInterface $container)
19
    {
20
        parent::__construct($em, $class);
21
        if ($container instanceof Container) {
22
            $this->container = $container;
23
        } else {
24
            $this->container = new Container($container);
25
        }
26
    }
27
28
    public function save(GroupEntityInterface $group)
29
    {