Code Duplication    Length = 3-3 lines in 2 locations

eZ/Publish/Core/Persistence/Legacy/Content/Mapper.php 1 location

@@ 210-212 (lines=3) @@
207
            }
208
209
            $fieldId = (int)$row['ezcontentobject_attribute_id'];
210
            if (!isset($fields[$contentId][$versionId][$fieldId])) {
211
                $fields[$contentId][$versionId][$fieldId] = $this->extractFieldFromRow($row);
212
            }
213
        }
214
215
        $results = array();

eZ/Publish/Core/Persistence/Legacy/Content/Type/Mapper.php 1 location

@@ 124-126 (lines=3) @@
121
            }
122
123
            $fieldId = (int)$row['ezcontentclass_attribute_id'];
124
            if ($fieldId && !isset($fields[$fieldId])) {
125
                $types[$typeId]->fieldDefinitions[] = $fields[$fieldId] = $this->extractFieldFromRow($row);
126
            }
127
128
            $groupId = (int)$row['ezcontentclass_classgroup_group_id'];
129
            if (!in_array($groupId, $types[$typeId]->groupIds)) {