Code Duplication    Length = 3-3 lines in 2 locations

eZ/Publish/Core/Repository/Helper/RelationProcessor.php 2 locations

@@ 131-133 (lines=3) @@
128
            }
129
            // Using bitwise AND as Legacy Stack stores COMMON, LINK and EMBED relation types
130
            // in the same entry using bitmask
131
            if ($relation->type & Relation::LINK) {
132
                $mappedRelations[Relation::LINK][$relation->destinationContentInfo->id] = $relation;
133
            }
134
            if ($relation->type & Relation::EMBED) {
135
                $mappedRelations[Relation::EMBED][$relation->destinationContentInfo->id] = $relation;
136
            }
@@ 134-136 (lines=3) @@
131
            if ($relation->type & Relation::LINK) {
132
                $mappedRelations[Relation::LINK][$relation->destinationContentInfo->id] = $relation;
133
            }
134
            if ($relation->type & Relation::EMBED) {
135
                $mappedRelations[Relation::EMBED][$relation->destinationContentInfo->id] = $relation;
136
            }
137
        }
138
139
        // Add new relations