Code Duplication    Length = 7-7 lines in 2 locations

src/HydratorContainer/FallbackHydratorContainer.php 1 location

@@ 30-36 (lines=7) @@
27
        }
28
    }
29
30
    public function addAlias($alias, $class)
31
    {
32
        $handler = $this->getHandler($class);
33
34
        $this->handlers[$alias] = $handler;
35
        $this->aliases[$alias] = $this->aliases[$class];
36
    }
37
38
    public function getHandler($class)
39
    {

src/NormalizerContainer/FallbackNormalizerContainer.php 1 location

@@ 31-37 (lines=7) @@
28
        }
29
    }
30
31
    public function addAlias($alias, $class)
32
    {
33
        $handler = $this->getHandler($class);
34
35
        $this->handlers[$alias] = $handler;
36
        $this->aliases[$alias] = $this->aliases[$class];
37
    }
38
39
    public function getHandler($class)
40
    {