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

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