Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 158-160 (lines=3) @@
155
            }
156
            // Using bitwise AND as Legacy Stack stores COMMON, LINK and EMBED relation types
157
            // in the same entry using bitmask
158
            if ($relation->type & Relation::LINK) {
159
                $mappedRelations[Relation::LINK][$relation->destinationContentInfo->id] = $relation;
160
            }
161
            if ($relation->type & Relation::EMBED) {
162
                $mappedRelations[Relation::EMBED][$relation->destinationContentInfo->id] = $relation;
163
            }
@@ 161-163 (lines=3) @@
158
            if ($relation->type & Relation::LINK) {
159
                $mappedRelations[Relation::LINK][$relation->destinationContentInfo->id] = $relation;
160
            }
161
            if ($relation->type & Relation::EMBED) {
162
                $mappedRelations[Relation::EMBED][$relation->destinationContentInfo->id] = $relation;
163
            }
164
        }
165
166
        // Add new relations