Code Duplication    Length = 5-5 lines in 2 locations

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

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