Code Duplication    Length = 8-8 lines in 2 locations

app/Containers/Authorization/UI/API/Controllers/Controller.php 1 location

@@ 114-121 (lines=8) @@
111
     *
112
     * @return  \Dingo\Api\Http\Response
113
     */
114
    public function deleteRole(DeleteRoleRequest $request, DeleteRoleAction $action)
115
    {
116
        $action->run($request->id);
117
118
        return $this->response->accepted(null, [
119
            'message' => 'Role (' . $request->id . ') Deleted Successfully.',
120
        ]);
121
    }
122
123
    /**
124
     * @param \App\Containers\Authorization\UI\API\Requests\RevokeUserFromRoleRequest $request

app/Containers/User/UI/API/Controllers/Controller.php 1 location

@@ 36-43 (lines=8) @@
33
     *
34
     * @return  \Dingo\Api\Http\Response
35
     */
36
    public function deleteUser(DeleteUserRequest $request, DeleteUserAction $action)
37
    {
38
        $action->run($request->id);
39
40
        return $this->response->accepted(null, [
41
            'message' => 'User (' . $request->user()->id . ') Deleted Successfully.',
42
        ]);
43
    }
44
45
    /**
46
     * @param \App\Containers\User\UI\API\Requests\ListAllUsersRequest $request