Code Duplication    Length = 7-7 lines in 2 locations

DependencyInjection/DoctrineExtension.php 2 locations

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