Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 115-117 (lines=3) @@
112
            }
113
114
            $fieldId = (int)$row['ezcontentclass_attribute_id'];
115
            if ($fieldId && !isset($fields[$fieldId])) {
116
                $types[$typeId]->fieldDefinitions[] = $fields[$fieldId] = $this->extractFieldFromRow($row);
117
            }
118
119
            $groupId = (int)$row['ezcontentclass_classgroup_group_id'];
120
            if (!in_array($groupId, $types[$typeId]->groupIds)) {

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

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