Code Duplication    Length = 4-4 lines in 2 locations

Core/Executor/ContentManager.php 2 locations

@@ 73-76 (lines=4) @@
70
            $contentCreateStruct->sectionId = $sectionId;
71
        }
72
73
        if (isset($this->dsl['owner'])) {
74
            $owner = $this->getUser($this->dsl['owner']);
75
            $contentCreateStruct->ownerId = $owner->id;
76
        }
77
78
        // instantiate a location create struct from the parent location
79
        $locationId = $this->dsl['main_location'];
@@ 165-168 (lines=4) @@
162
                    $contentMetaDataUpdateStruct->remoteId = $this->dsl['new_remote_id'];
163
                }
164
165
                if (isset($this->dsl['owner'])) {
166
                    $owner = $this->getUser($this->dsl['owner']);
167
                    $contentMetaDataUpdateStruct->ownerId = $owner->id;
168
                }
169
170
                $content = $contentService->updateContentMetadata($content->contentInfo, $contentMetaDataUpdateStruct);
171
            }