Code Duplication    Length = 5-5 lines in 3 locations

DependencyInjection/Component/Openid.php 1 location

@@ 26-30 (lines=5) @@
23
            $service = [
24
                'key' => $clientServiceKey,
25
            ];
26
            if (isset($config['provider_options']) && isset($config['provider_options']['name'])) {
27
                $service['name'] = $config['provider_options']['name'];
28
            } else {
29
                $service['name'] = ucfirst($key);
30
            }
31
32
            $clientServiceKeys[$key] = $service;
33
            foreach ($config as $ckey => $cvalue) {

DependencyInjection/Component/Oauth.php 1 location

@@ 155-159 (lines=5) @@
152
            $service = [
153
                'key' => $clientServiceKey,
154
            ];
155
            if (isset($config['provider_options']) && isset($config['provider_options']['name'])) {
156
                $service['name'] = $config['provider_options']['name'];
157
            } else {
158
                $service['name'] = ucfirst($key);
159
            }
160
161
            $clientServiceKeys[$key] = $service;
162
        }

DependencyInjection/Component/Openidconnect.php 1 location

@@ 87-91 (lines=5) @@
84
            $service = [
85
                'key' => $clientServiceKey,
86
            ];
87
            if (isset($config['options']) && isset($config['options']['name'])) {
88
                $service['name'] = $config['options']['name'];
89
            } else {
90
                $service['name'] = ucfirst($key);
91
            }
92
93
            $clientServiceKeys[$key] = $service;
94
            foreach ($config as $configKey => $configValue) {