Unverified Commit 191033ca authored by Viral Solani's avatar Viral Solani Committed by GitHub

Merge pull request #184 from viralsolani/analysis-XplBQk

Apply fixes from StyleCI
parents bd48f1b3 05f81431
...@@ -120,12 +120,9 @@ class UsersController extends APIController ...@@ -120,12 +120,9 @@ class UsersController extends APIController
public function delteAll(Request $request) public function delteAll(Request $request)
{ {
$ids = $request->get('ids'); $ids = $request->get('ids');
if(isset($ids) && !empty($ids)) if (isset($ids) && !empty($ids)) {
{
$this->repository->deleteAll($ids); $this->repository->deleteAll($ids);
} }
} }
/** /**
......
...@@ -189,7 +189,7 @@ class UserRepository extends BaseRepository ...@@ -189,7 +189,7 @@ class UserRepository extends BaseRepository
} }
/** /**
* Delete User * Delete User.
* *
* @param Model $user * @param Model $user
* *
...@@ -213,7 +213,7 @@ class UserRepository extends BaseRepository ...@@ -213,7 +213,7 @@ class UserRepository extends BaseRepository
} }
/** /**
* Delete All User * Delete All User.
* *
* @param $ids * @param $ids
* *
...@@ -227,10 +227,9 @@ class UserRepository extends BaseRepository ...@@ -227,10 +227,9 @@ class UserRepository extends BaseRepository
throw new GeneralException(trans('exceptions.backend.access.users.cant_delete_self')); throw new GeneralException(trans('exceptions.backend.access.users.cant_delete_self'));
} }
$result = DB::table("users")->whereIn('id',explode(",",$ids))->delete(); $result = DB::table('users')->whereIn('id', explode(',', $ids))->delete();
dd($result); dd($result);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment