Code Duplication    Length = 7-7 lines in 2 locations

src/definition/resolver/xml/XmlResolver.php 2 locations

@@ 131-137 (lines=7) @@
128
     * @throws ParameterDefinitionAlreadyExistsException
129
     * @throws ReferenceNotImplementsException
130
     */
131
    public function resolveConstructor(ClassDefinition $classDefinition, array $constructorArray)
132
    {
133
        $methodDefinition = $classDefinition->defineConstructor();
134
        if (array_key_exists('arguments', $constructorArray)) {
135
            $this->resolveArguments($methodDefinition, $constructorArray['arguments']);
136
        }
137
    }
138
139
    /**
140
     * Resolve property
@@ 166-172 (lines=7) @@
163
     * @throws ParameterDefinitionAlreadyExistsException
164
     * @throws ReferenceNotImplementsException
165
     */
166
    public function resolveMethod(ClassDefinition $classDefinition, array $methodArray, string $methodName)
167
    {
168
        $methodDefinition = $classDefinition->defineMethod($methodName);
169
        if (array_key_exists('arguments', $methodArray)) {
170
            $this->resolveArguments($methodDefinition, $methodArray['arguments']);
171
        }
172
    }
173
174
    /**
175
     * Resolve method/constructor arguments