Code Duplication    Length = 1-1 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

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