Code Duplication    Length = 6-6 lines in 2 locations

src/DependencyInjection/FOSElasticaExtension.php 2 locations

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