Code Duplication    Length = 4-4 lines in 2 locations

Core/Executor/ContentManager.php 2 locations

@@ 97-100 (lines=4) @@
94
            $contentCreateStruct->sectionId = $section->id;
95
        }
96
97
        if (isset($step->dsl['owner'])) {
98
            $owner = $this->getUser($step->dsl['owner']);
99
            $contentCreateStruct->ownerId = $owner->id;
100
        }
101
102
        // This is a bit tricky, as the eZPublish API does not support having a different creator and owner with only 1 version.
103
        // We allow it, hoping that nothing gets broken because of it
@@ 270-273 (lines=4) @@
267
                    $contentMetaDataUpdateStruct->remoteId = $step->dsl['new_remote_id'];
268
                }
269
270
                if (isset($step->dsl['owner'])) {
271
                    $owner = $this->getUser($step->dsl['owner']);
272
                    $contentMetaDataUpdateStruct->ownerId = $owner->id;
273
                }
274
275
                if (isset($step->dsl['modification_date'])) {
276
                    $contentMetaDataUpdateStruct->modificationDate = $this->toDateTime($step->dsl['modification_date']);