Code Duplication    Length = 7-7 lines in 2 locations

DependencyInjection/DoctrineExtension.php 2 locations

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