Code Duplication    Length = 6-6 lines in 2 locations

lib/Drupal/Core/DependencyInjection/YamlFileLoader.php 1 location

@@ 145-150 (lines=6) @@
142
            throw new InvalidArgumentException(sprintf('A service definition must be an array or a string starting with "@" but %s found for service "%s" in %s. Check your YAML syntax.', gettype($service), $id, $file));
143
        }
144
145
        if (isset($service['alias'])) {
146
            $public = !array_key_exists('public', $service) || (bool) $service['public'];
147
            $this->container->setAlias($id, new Alias($service['alias'], $public));
148
149
            return;
150
        }
151
152
        if (isset($service['parent'])) {
153
            $definition = new DefinitionDecorator($service['parent']);

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php 1 location

@@ 149-154 (lines=6) @@
146
            throw new InvalidArgumentException(sprintf('A service definition must be an array or a string starting with "@" but %s found for service "%s" in %s. Check your YAML syntax.', gettype($service), $id, $file));
147
        }
148
149
        if (isset($service['alias'])) {
150
            $public = !array_key_exists('public', $service) || (bool) $service['public'];
151
            $this->container->setAlias($id, new Alias($service['alias'], $public));
152
153
            return;
154
        }
155
156
        if (isset($service['parent'])) {
157
            $definition = new DefinitionDecorator($service['parent']);