Code Duplication    Length = 6-6 lines in 2 locations

eZ/Publish/Core/Persistence/Legacy/Content/FieldValue/Converter/RelationConverter.php 1 location

@@ 153-158 (lines=6) @@
150
            return;
151
        }
152
153
        if (
154
            ($selectionType = $dom->getElementsByTagName('selection_type')->item(0)) &&
155
            $selectionType->hasAttribute('value')
156
        ) {
157
            $fieldSettings['selectionMethod'] = (int)$selectionType->getAttribute('value');
158
        }
159
160
        if (
161
            ($defaultLocation = $dom->getElementsByTagName('contentobject-placement')->item(0)) &&

eZ/Publish/Core/Persistence/Legacy/Content/FieldValue/Converter/RelationListConverter.php 1 location

@@ 213-218 (lines=6) @@
210
            return;
211
        }
212
213
        if (
214
            ($selectionType = $dom->getElementsByTagName('selection_type')->item(0)) &&
215
            $selectionType->hasAttribute('value')
216
        ) {
217
            $fieldSettings['selectionMethod'] = (int)$selectionType->getAttribute('value');
218
        }
219
220
        if (
221
            ($defaultLocation = $dom->getElementsByTagName('contentobject-placement')->item(0)) &&