Code Duplication    Length = 4-4 lines in 2 locations

src/DataContainerBuilder/XmlBuilder/ParserContext.php 2 locations

@@ 166-169 (lines=4) @@
163
        $parentAssociation = $this->getParentAssociation();
164
        $parentEntity = $this->getParentEntity();
165
166
        if (null !== $parentAssociation && null === $parentEntity) {
167
            $errMsg = 'Parent entity not specified';
168
            throw new Exception\InvalidParserContextException($errMsg);
169
        }
170
171
        if (null === $parentAssociation && null !== $parentEntity) {
172
            $errMsg = 'Parent association not specified';
@@ 171-174 (lines=4) @@
168
            throw new Exception\InvalidParserContextException($errMsg);
169
        }
170
171
        if (null === $parentAssociation && null !== $parentEntity) {
172
            $errMsg = 'Parent association not specified';
173
            throw new Exception\InvalidParserContextException($errMsg);
174
        }
175
176
177
        if (null === $this->getDataContainer()) {