Code Duplication    Length = 3-3 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

@@ 332-334 (lines=3) @@
329
330
    private function validateTypeAndService(array $config, $path)
331
    {
332
        if (!isset($config['type']) && !isset($config['service'])) {
333
            throw new InvalidConfigurationException(sprintf('You must set one of "type" or "service" for "%s"', $path));
334
        }
335
        if (isset($config['type']) && isset($config['service'])) {
336
            throw new InvalidConfigurationException(sprintf('You cannot set both "type" and "service" for "%s" - please choose one.', $path));
337
        }
@@ 335-337 (lines=3) @@
332
        if (!isset($config['type']) && !isset($config['service'])) {
333
            throw new InvalidConfigurationException(sprintf('You must set one of "type" or "service" for "%s"', $path));
334
        }
335
        if (isset($config['type']) && isset($config['service'])) {
336
            throw new InvalidConfigurationException(sprintf('You cannot set both "type" and "service" for "%s" - please choose one.', $path));
337
        }
338
    }
339
}
340