Code Duplication    Length = 7-7 lines in 2 locations

DependencyInjection/DoctrineExtension.php 2 locations

@@ 294-300 (lines=7) @@
291
                'mapping_types' => true,
292
                'platform_service' => true,
293
            ];
294
            foreach ($options as $key => $value) {
295
                if (isset($nonRewrittenKeys[$key])) {
296
                    continue;
297
                }
298
                $options['global'][$key] = $value;
299
                unset($options[$key]);
300
            }
301
            if (empty($options['wrapperClass'])) {
302
                // Change the wrapper class only if the user does not already forced using a custom one.
303
                $options['wrapperClass'] = 'Doctrine\\DBAL\\Sharding\\PoolingShardConnection';
@@ 259-265 (lines=7) @@
256
                'mapping_types' => true,
257
                'platform_service' => true,
258
            ];
259
            foreach ($options as $key => $value) {
260
                if (isset($nonRewrittenKeys[$key])) {
261
                    continue;
262
                }
263
                $options['master'][$key] = $value;
264
                unset($options[$key]);
265
            }
266
            if (empty($options['wrapperClass'])) {
267
                // Change the wrapper class only if the user does not already forced using a custom one.
268
                $options['wrapperClass'] = 'Doctrine\\DBAL\\Connections\\MasterSlaveConnection';