Code Duplication    Length = 4-4 lines in 2 locations

Core/Executor/ContentManager.php 2 locations

@@ 92-95 (lines=4) @@
89
            $contentCreateStruct->sectionId = $section->id;
90
        }
91
92
        if (isset($this->dsl['owner'])) {
93
            $owner = $this->getUser($this->dsl['owner']);
94
            $contentCreateStruct->ownerId = $owner->id;
95
        }
96
97
        // This is a bit tricky, as the eZPublish API does not support having a different creator and owner with only 1 version.
98
        // We allow it, hoping that nothing gets broken because of it
@@ 245-248 (lines=4) @@
242
                    $contentMetaDataUpdateStruct->remoteId = $this->dsl['new_remote_id'];
243
                }
244
245
                if (isset($this->dsl['owner'])) {
246
                    $owner = $this->getUser($this->dsl['owner']);
247
                    $contentMetaDataUpdateStruct->ownerId = $owner->id;
248
                }
249
250
                if (isset($this->dsl['modification_date'])) {
251
                    $contentMetaDataUpdateStruct->modificationDate = $this->toDateTime($this->dsl['modification_date']);