Code Duplication    Length = 7-7 lines in 2 locations

DependencyInjection/DoctrineExtension.php 2 locations

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