From 57dd0d35a953f6c7b2006fa04e29419175bd7f7c Mon Sep 17 00:00:00 2001 From: Damien Burel <damien.burel@maarch.org> Date: Wed, 18 Oct 2017 15:46:37 +0200 Subject: [PATCH] [REFACTORING] --- core/Controllers/UserController.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/core/Controllers/UserController.php b/core/Controllers/UserController.php index 25b7f955362..8822d31dc19 100755 --- a/core/Controllers/UserController.php +++ b/core/Controllers/UserController.php @@ -152,15 +152,8 @@ class UserController $users[$key]['inDiffListDest'] = 'N'; } } - $users; - - return $response->withJson( - [ - 'success' => _DELETED_USER, - 'users' => $users - ] - ); + return $response->withJson(['success' => _DELETED_USER, 'users' => $users]); } public function updateProfile(RequestInterface $request, ResponseInterface $response) -- GitLab