Code Duplication    Length = 1-1 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

@@ 499-499 (lines=1) @@
496
497
        $node
498
            ->validate()
499
                ->ifTrue(function ($v) { return isset($v['driver']) && 'propel' === $v['driver'] && isset($v['listener']); })
500
                    ->thenInvalid('Propel doesn\'t support listeners')
501
                ->ifTrue(function ($v) { return isset($v['driver']) && 'propel' === $v['driver'] && isset($v['repository']); })
502
                    ->thenInvalid('Propel doesn\'t support the "repository" parameter')
@@ 501-501 (lines=1) @@
498
            ->validate()
499
                ->ifTrue(function ($v) { return isset($v['driver']) && 'propel' === $v['driver'] && isset($v['listener']); })
500
                    ->thenInvalid('Propel doesn\'t support listeners')
501
                ->ifTrue(function ($v) { return isset($v['driver']) && 'propel' === $v['driver'] && isset($v['repository']); })
502
                    ->thenInvalid('Propel doesn\'t support the "repository" parameter')
503
                ->ifTrue(function($v) { return isset($v['driver']) && 'orm' !== $v['driver'] && !empty($v['elastica_to_model_transformer']['hints']); })
504
                    ->thenInvalid('Hints are only supported by the "orm" driver')