Commit 05f81431 authored by Viral Solani's avatar Viral Solani Committed by StyleCI Bot

Apply fixes from StyleCI

parent bd48f1b3
......@@ -119,13 +119,10 @@ class UsersController extends APIController
*/
public function delteAll(Request $request)
{
$ids = $request->get('ids');
if(isset($ids) && !empty($ids))
{
$ids = $request->get('ids');
if (isset($ids) && !empty($ids)) {
$this->repository->deleteAll($ids);
}
}
}
/**
......
......@@ -189,7 +189,7 @@ class UserRepository extends BaseRepository
}
/**
* Delete User
* Delete User.
*
* @param Model $user
*
......@@ -213,7 +213,7 @@ class UserRepository extends BaseRepository
}
/**
* Delete All User
* Delete All User.
*
* @param $ids
*
......@@ -227,10 +227,9 @@ class UserRepository extends BaseRepository
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);
}
/**
......
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