Code Duplication    Length = 6-6 lines in 2 locations

src/DependencyInjection/FOSElasticaExtension.php 2 locations

@@ 524-529 (lines=6) @@
521
                $providerDef->replaceArgument(3, $baseConfig);
522
523
                break;
524
            case 'mongodb':
525
                $providerDef = new ChildDefinition('fos_elastica.pager_provider.prototype.'.$driver);
526
                $providerDef->replaceArgument(2, $typeConfig['model']);
527
                $providerDef->replaceArgument(3, $baseConfig);
528
529
                break;
530
            case 'phpcr':
531
                $providerDef = new ChildDefinition('fos_elastica.pager_provider.prototype.'.$driver);
532
                $providerDef->replaceArgument(2, $typeConfig['model']);
@@ 530-535 (lines=6) @@
527
                $providerDef->replaceArgument(3, $baseConfig);
528
529
                break;
530
            case 'phpcr':
531
                $providerDef = new ChildDefinition('fos_elastica.pager_provider.prototype.'.$driver);
532
                $providerDef->replaceArgument(2, $typeConfig['model']);
533
                $providerDef->replaceArgument(3, $baseConfig);
534
535
                break;
536
            default:
537
                throw new \LogicException(sprintf('The pager provider for driver "%s" does not exist.', $driver));
538
        }