Code Duplication    Length = 7-7 lines in 2 locations

DependencyInjection/DoctrineExtension.php 2 locations

@@ 302-308 (lines=7) @@
299
                'mapping_types' => true,
300
                'platform_service' => true,
301
            ];
302
            foreach ($options as $key => $value) {
303
                if (isset($nonRewrittenKeys[$key])) {
304
                    continue;
305
                }
306
                $options['global'][$key] = $value;
307
                unset($options[$key]);
308
            }
309
            if (empty($options['wrapperClass'])) {
310
                // Change the wrapper class only if the user does not already forced using a custom one.
311
                $options['wrapperClass'] = 'Doctrine\\DBAL\\Sharding\\PoolingShardConnection';
@@ 267-273 (lines=7) @@
264
                'mapping_types' => true,
265
                'platform_service' => true,
266
            ];
267
            foreach ($options as $key => $value) {
268
                if (isset($nonRewrittenKeys[$key])) {
269
                    continue;
270
                }
271
                $options['master'][$key] = $value;
272
                unset($options[$key]);
273
            }
274
            if (empty($options['wrapperClass'])) {
275
                // Change the wrapper class only if the user does not already forced using a custom one.
276
                $options['wrapperClass'] = 'Doctrine\\DBAL\\Connections\\MasterSlaveConnection';