Code Duplication    Length = 1-1 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

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