Code Duplication    Length = 10-10 lines in 2 locations

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
    {

DependencyInjection/Component/Captcha.php 1 location

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