Code Duplication    Length = 1-1 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

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