Code Duplication    Length = 11-11 lines in 2 locations

DependencyInjection/Component/Openid.php 1 location

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

DependencyInjection/Component/Openidconnect.php 1 location

@@ 95-105 (lines=11) @@
92
            }
93
94
            $clientServiceKeys[$key] = $service;
95
            foreach ($config as $configKey => $configValue) {
96
                if ('options' === $configKey) {
97
                    if (is_array($configValue)) {
98
                        foreach ($configValue as $parameterKey => $parameterValue) {
99
                            $container->setParameter($clientServiceKey.'.option.'.$parameterKey, $parameterValue);
100
                        }
101
                    }
102
                } else {
103
                    $container->setParameter($clientServiceKey.'.'.$configKey, $configValue);
104
                }
105
            }
106
            $uriConfigurations = $container->getParameter('sludio_helper.openidconnect.client.'.$key.'.uris');
107
            foreach ($uriConfigurations as $subKey => $uriConfig) {
108
                $tree = new TreeBuilder();