Code Duplication    Length = 7-7 lines in 2 locations

DependencyInjection/DoctrineExtension.php 2 locations

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