Code Duplication    Length = 7-7 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

@@ 326-332 (lines=7) @@
323
                                'resolve_target_entity' => true,
324
                            ];
325
                            $entityManager = [];
326
                            foreach ($v as $key => $value) {
327
                                if (isset($excludedKeys[$key])) {
328
                                    continue;
329
                                }
330
                                $entityManager[$key] = $v[$key];
331
                                unset($v[$key]);
332
                            }
333
                            $v['default_entity_manager'] = isset($v['default_entity_manager']) ? (string) $v['default_entity_manager'] : 'default';
334
                            $v['entity_managers']        = [$v['default_entity_manager'] => $entityManager];
335
@@ 66-72 (lines=7) @@
63
                        // Key that should not be rewritten to the connection config
64
                        $excludedKeys = ['default_connection' => true, 'types' => true, 'type' => true];
65
                        $connection   = [];
66
                        foreach ($v as $key => $value) {
67
                            if (isset($excludedKeys[$key])) {
68
                                continue;
69
                            }
70
                            $connection[$key] = $v[$key];
71
                            unset($v[$key]);
72
                        }
73
                        $v['default_connection'] = isset($v['default_connection']) ? (string) $v['default_connection'] : 'default';
74
                        $v['connections']        = [$v['default_connection'] => $connection];
75