Code Duplication    Length = 7-7 lines in 2 locations

DependencyInjection/DoctrineExtension.php 2 locations

@@ 260-266 (lines=7) @@
257
                'mapping_types' => true,
258
                'platform_service' => true,
259
            ];
260
            foreach ($options as $key => $value) {
261
                if (isset($nonRewrittenKeys[$key])) {
262
                    continue;
263
                }
264
                $options['master'][$key] = $value;
265
                unset($options[$key]);
266
            }
267
            if (empty($options['wrapperClass'])) {
268
                // Change the wrapper class only if the user does not already forced using a custom one.
269
                $options['wrapperClass'] = 'Doctrine\\DBAL\\Connections\\MasterSlaveConnection';
@@ 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';