Code Duplication    Length = 4-4 lines in 2 locations

Core/Executor/ContentManager.php 2 locations

@@ 81-84 (lines=4) @@
78
            $contentCreateStruct->sectionId = $sectionId;
79
        }
80
81
        if (isset($this->dsl['owner'])) {
82
            $owner = $this->getUser($this->dsl['owner']);
83
            $contentCreateStruct->ownerId = $owner->id;
84
        }
85
86
        // This is a bit tricky, as the eZPublish API does not support having a different creator and owner with only 1 version.
87
        // We allow it, hoping that nothing gets broken because of it
@@ 227-230 (lines=4) @@
224
                    $contentMetaDataUpdateStruct->remoteId = $this->dsl['new_remote_id'];
225
                }
226
227
                if (isset($this->dsl['owner'])) {
228
                    $owner = $this->getUser($this->dsl['owner']);
229
                    $contentMetaDataUpdateStruct->ownerId = $owner->id;
230
                }
231
232
                if (isset($this->dsl['modification_date'])) {
233
                    $contentMetaDataUpdateStruct->modificationDate = $this->toDateTime($this->dsl['modification_date']);