Code Duplication    Length = 3-3 lines in 2 locations

src/YamlDefinitionLoader.php 2 locations

@@ 151-153 (lines=3) @@
148
            return new AliasDefinition($id, substr($service, 1));
149
        }
150
151
        if (!is_array($service)) {
152
            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, $this->fileName));
153
        }
154
155
        if (isset($service['alias'])) {
156
            if (isset($service['public'])) {
@@ 186-188 (lines=3) @@
183
            }
184
185
            if (isset($service['calls'])) {
186
                if (!is_array($service['calls'])) {
187
                    throw new InvalidArgumentException(sprintf('Parameter "calls" must be an array for service "%s" in %s. Check your YAML syntax.', $id, $this->fileName));
188
                }
189
190
                foreach ($service['calls'] as $call) {
191
                    if (isset($call['method'])) {