Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 135-139 (lines=5) @@
132
     */
133
    private function parseDefinition($id, $service, $file)
134
    {
135
        if (is_string($service) && 0 === strpos($service, '@')) {
136
            $this->container->setAlias($id, substr($service, 1));
137
138
            return;
139
        }
140
141
        if (!is_array($service)) {
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));

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

@@ 139-143 (lines=5) @@
136
     */
137
    private function parseDefinition($id, $service, $file)
138
    {
139
        if (is_string($service) && 0 === strpos($service, '@')) {
140
            $this->container->setAlias($id, substr($service, 1));
141
142
            return;
143
        }
144
145
        if (!is_array($service)) {
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));