Code Duplication    Length = 7-7 lines in 2 locations

src/MetadataManager.php 2 locations

@@ 280-286 (lines=7) @@
277
        $association->addToEnd($dependentEnd);
278
        $principalReferralConstraint = null;
279
        $dependentReferralConstraint = null;
280
        if (null != $principalConstraintProperty && 0 < count($principalConstraintProperty)) {
281
            $principalReferralConstraint = new TReferentialConstraintRoleElementType();
282
            $principalReferralConstraint->setRole($principalNavigationProperty->getFromRole());
283
            foreach ($principalConstraintProperty as $propertyRef) {
284
                $principalReferralConstraint->addToPropertyRef($propertyRef);
285
            }
286
        }
287
        if (null != $dependentConstraintProperty && 0 < count($dependentConstraintProperty)) {
288
            $dependentReferralConstraint = new TReferentialConstraintRoleElementType();
289
            $dependentReferralConstraint->setRole($dependentNavigationProperty->getFromRole());
@@ 287-293 (lines=7) @@
284
                $principalReferralConstraint->addToPropertyRef($propertyRef);
285
            }
286
        }
287
        if (null != $dependentConstraintProperty && 0 < count($dependentConstraintProperty)) {
288
            $dependentReferralConstraint = new TReferentialConstraintRoleElementType();
289
            $dependentReferralConstraint->setRole($dependentNavigationProperty->getFromRole());
290
            foreach ($dependentConstraintProperty as $propertyRef) {
291
                $dependentReferralConstraint->addToPropertyRef($propertyRef);
292
            }
293
        }
294
295
        if (null != $dependentReferralConstraint || null != $principalReferralConstraint) {
296
            $constraint = new TConstraintType();