Code Duplication    Length = 10-10 lines in 2 locations

DependencyInjection/Component/Captcha.php 1 location

@@ 27-36 (lines=10) @@
24
25
    protected $usedTypes = [];
26
27
    public function getConfigurator($type)
28
    {
29
        if (!isset($this->configurators[$type])) {
30
            $class = self::$supportedTypes[$type];
31
32
            $this->configurators[$type] = new $class();
33
        }
34
35
        return $this->configurators[$type];
36
    }
37
38
    public function configure(ContainerBuilder &$container)
39
    {

DependencyInjection/Component/Oauth.php 1 location

@@ 44-53 (lines=10) @@
41
        return array_keys(self::$supportedProviderTypes);
42
    }
43
44
    public function getConfigurator($type)
45
    {
46
        if (!isset($this->configurators[$type])) {
47
            $class = self::$supportedProviderTypes[$type];
48
49
            $this->configurators[$type] = new $class();
50
        }
51
52
        return $this->configurators[$type];
53
    }
54
55
    public function buildClientConfiguration(NodeDefinition &$node)
56
    {