Code Duplication    Length = 4-4 lines in 2 locations

Core/Executor/ContentManager.php 2 locations

@@ 85-88 (lines=4) @@
82
            $contentCreateStruct->sectionId = $sectionId;
83
        }
84
85
        if (isset($this->dsl['owner'])) {
86
            $owner = $this->getUser($this->dsl['owner']);
87
            $contentCreateStruct->ownerId = $owner->id;
88
        }
89
90
        // This is a bit tricky, as the eZPublish API does not support having a different creator and owner with only 1 version.
91
        // We allow it, hoping that nothing gets broken because of it
@@ 238-241 (lines=4) @@
235
                    $contentMetaDataUpdateStruct->remoteId = $this->dsl['new_remote_id'];
236
                }
237
238
                if (isset($this->dsl['owner'])) {
239
                    $owner = $this->getUser($this->dsl['owner']);
240
                    $contentMetaDataUpdateStruct->ownerId = $owner->id;
241
                }
242
243
                if (isset($this->dsl['modification_date'])) {
244
                    $contentMetaDataUpdateStruct->modificationDate = $this->toDateTime($this->dsl['modification_date']);