Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 118-120 (lines=3) @@
115
            }
116
            // Using bitwise AND as Legacy Stack stores COMMON, LINK and EMBED relation types
117
            // in the same entry using bitmask
118
            if ($relation->type & Relation::LINK) {
119
                $mappedRelations[Relation::LINK][$relation->destinationContentInfo->id] = $relation;
120
            }
121
            if ($relation->type & Relation::EMBED) {
122
                $mappedRelations[Relation::EMBED][$relation->destinationContentInfo->id] = $relation;
123
            }
@@ 121-123 (lines=3) @@
118
            if ($relation->type & Relation::LINK) {
119
                $mappedRelations[Relation::LINK][$relation->destinationContentInfo->id] = $relation;
120
            }
121
            if ($relation->type & Relation::EMBED) {
122
                $mappedRelations[Relation::EMBED][$relation->destinationContentInfo->id] = $relation;
123
            }
124
        }
125
126
        // Add new relations