Code Duplication    Length = 7-7 lines in 2 locations

DependencyInjection/DoctrineExtension.php 2 locations

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