Code Duplication    Length = 6-6 lines in 2 locations

src/DependencyInjection/FOSElasticaExtension.php 2 locations

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