Code Duplication    Length = 11-11 lines in 2 locations

DependencyInjection/Component/Openid.php 1 location

@@ 37-47 (lines=11) @@
34
            }
35
36
            $clientServiceKeys[$key] = $service;
37
            foreach ($config as $ckey => $cvalue) {
38
                if ($ckey === 'provider_options') {
39
                    if (is_array($cvalue)) {
40
                        foreach ($cvalue as $pkey => $pvalue) {
41
                            $container->setParameter($clientServiceKey.'.option.'.$pkey, $pvalue);
42
                        }
43
                    }
44
                } else {
45
                    $container->setParameter($clientServiceKey.'.'.$ckey, $cvalue);
46
                }
47
            }
48
            $this->configureClient($container, $clientServiceKey);
49
        }
50
        $container->getDefinition($this->alias.'.registry')->replaceArgument(1, $clientServiceKeys);

DependencyInjection/Component/Openidconnect.php 1 location

@@ 101-111 (lines=11) @@
98
            }
99
100
            $clientServiceKeys[$key] = $service;
101
            foreach ($config as $configKey => $configValue) {
102
                if ('options' === $configKey) {
103
                    if (is_array($configValue)) {
104
                        foreach ($configValue as $parameterKey => $parameterValue) {
105
                            $container->setParameter($clientServiceKey.'.option.'.$parameterKey, $parameterValue);
106
                        }
107
                    }
108
                } else {
109
                    $container->setParameter($clientServiceKey.'.'.$configKey, $configValue);
110
                }
111
            }
112
            $uriConfigurations = $container->getParameter($this->alias.'.client.'.$key.'.uris');
113
            foreach ($uriConfigurations as $subKey => $uriConfig) {
114
                $tree = new TreeBuilder();