Code Duplication    Length = 3-3 lines in 2 locations

Core/Executor/UserManager.php 2 locations

@@ 112-114 (lines=3) @@
109
            $user = $userService->updateUser($user, $userUpdateStruct);
110
111
            if (isset($this->dsl['groups'])) {
112
                if (!is_array($this->dsl['groups'])) {
113
                    $this->dsl['groups'] = array($this->dsl['groups']);
114
                }
115
116
                $assignedGroups = $userService->loadUserGroupsOfUser($user);
117
@@ 37-39 (lines=3) @@
34
            throw new \Exception('No user groups set to create user in.');
35
        }
36
37
        if (!is_array($this->dsl['groups'])) {
38
            $this->dsl['groups'] = array($this->dsl['groups']);
39
        }
40
41
        $userService = $this->repository->getUserService();
42
        $contentTypeService = $this->repository->getContentTypeService();