Code Duplication    Length = 3-3 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

@@ 456-458 (lines=3) @@
453
     */
454
    private function validateTypeAndService(array $config, $path)
455
    {
456
        if (!isset($config['type']) && !isset($config['service'])) {
457
            throw new InvalidConfigurationException(sprintf('You must set one of "type" or "service" for "%s"', $path));
458
        }
459
        if (isset($config['type']) && isset($config['service'])) {
460
            throw new InvalidConfigurationException(sprintf('You cannot set both "type" and "service" for "%s" - please choose one.', $path));
461
        }
@@ 459-461 (lines=3) @@
456
        if (!isset($config['type']) && !isset($config['service'])) {
457
            throw new InvalidConfigurationException(sprintf('You must set one of "type" or "service" for "%s"', $path));
458
        }
459
        if (isset($config['type']) && isset($config['service'])) {
460
            throw new InvalidConfigurationException(sprintf('You cannot set both "type" and "service" for "%s" - please choose one.', $path));
461
        }
462
    }
463
}
464