Code Duplication    Length = 7-7 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

@@ 73-79 (lines=7) @@
70
                        // Key that should not be rewritten to the connection config
71
                        $excludedKeys = array('default_connection' => true, 'types' => true, 'type' => true);
72
                        $connection = array();
73
                        foreach ($v as $key => $value) {
74
                            if (isset($excludedKeys[$key])) {
75
                                continue;
76
                            }
77
                            $connection[$key] = $v[$key];
78
                            unset($v[$key]);
79
                        }
80
                        $v['default_connection'] = isset($v['default_connection']) ? (string) $v['default_connection'] : 'default';
81
                        $v['connections'] = array($v['default_connection'] => $connection);
82
@@ 303-309 (lines=7) @@
300
                                'resolve_target_entity' => true,
301
                            );
302
                            $entityManager = array();
303
                            foreach ($v as $key => $value) {
304
                                if (isset($excludedKeys[$key])) {
305
                                    continue;
306
                                }
307
                                $entityManager[$key] = $v[$key];
308
                                unset($v[$key]);
309
                            }
310
                            $v['default_entity_manager'] = isset($v['default_entity_manager']) ? (string) $v['default_entity_manager'] : 'default';
311
                            $v['entity_managers'] = array($v['default_entity_manager'] => $entityManager);
312