Code Duplication    Length = 4-4 lines in 2 locations

Core/Executor/ContentManager.php 2 locations

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