Code Duplication    Length = 14-14 lines in 2 locations

eZ/Publish/Core/SignalSlot/UserService.php 2 locations

@@ 140-153 (lines=14) @@
137
     *
138
     * @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException if the authenticated user is not allowed to create a user group
139
     */
140
    public function deleteUserGroup(UserGroup $userGroup)
141
    {
142
        $returnValue = $this->service->deleteUserGroup($userGroup);
143
        $this->signalDispatcher->emit(
144
            new DeleteUserGroupSignal(
145
                [
146
                    'userGroupId' => $userGroup->id,
147
                    'affectedLocationIds' => $returnValue,
148
                ]
149
            )
150
        );
151
152
        return $returnValue;
153
    }
154
155
    /**
156
     * Moves the user group to another parent.
@@ 163-176 (lines=14) @@
160
     *
161
     * @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException if the authenticated user is not allowed to move the user group
162
     */
163
    public function moveUserGroup(UserGroup $userGroup, UserGroup $newParent)
164
    {
165
        $returnValue = $this->service->moveUserGroup($userGroup, $newParent);
166
        $this->signalDispatcher->emit(
167
            new MoveUserGroupSignal(
168
                [
169
                    'userGroupId' => $userGroup->id,
170
                    'newParentId' => $newParent->id,
171
                ]
172
            )
173
        );
174
175
        return $returnValue;
176
    }
177
178
    /**
179
     * Updates the group profile with fields and meta data.