Code Duplication    Length = 1-1 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

@@ 459-459 (lines=1) @@
456
457
        $node
458
            ->validate()
459
                ->ifTrue(function ($v) { return isset($v['driver']) && 'propel' === $v['driver'] && isset($v['listener']); })
460
                    ->thenInvalid('Propel doesn\'t support listeners')
461
                ->ifTrue(function ($v) { return isset($v['driver']) && 'propel' === $v['driver'] && isset($v['repository']); })
462
                    ->thenInvalid('Propel doesn\'t support the "repository" parameter')
@@ 461-461 (lines=1) @@
458
            ->validate()
459
                ->ifTrue(function ($v) { return isset($v['driver']) && 'propel' === $v['driver'] && isset($v['listener']); })
460
                    ->thenInvalid('Propel doesn\'t support listeners')
461
                ->ifTrue(function ($v) { return isset($v['driver']) && 'propel' === $v['driver'] && isset($v['repository']); })
462
                    ->thenInvalid('Propel doesn\'t support the "repository" parameter')
463
                ->ifTrue(function($v) { return isset($v['driver']) && 'orm' !== $v['driver'] && !empty($v['elastica_to_model_transformer']['hints']); })
464
                    ->thenInvalid('Hints are only supported by the "orm" driver')