Unverified Commit 37cb8176 authored by Viral Solani's avatar Viral Solani Committed by GitHub

Merge pull request #42 from viralsolani/analysis-8Q4Bgm

Apply fixes from StyleCI
parents 71e026d7 5d8bd22a
......@@ -337,5 +337,4 @@ trait UserAccess
$this->permissions()->detach($permission);
}
}
......@@ -173,7 +173,6 @@ class UserRepository extends BaseRepository
DB::transaction(function () use ($user, $data, $roles, $permissions) {
if ($user->update($data)) {
$user->status = isset($data['status']) ? 1 : 0;
$user->confirmed = isset($data['confirmed']) ? 1 : 0;
$user->save();
......@@ -183,6 +182,7 @@ class UserRepository extends BaseRepository
$this->flushPermissions($permissions, $user);
event(new UserUpdated($user));
return true;
}
......@@ -348,7 +348,7 @@ class UserRepository extends BaseRepository
}
/**
* Flush roles out, then add array of new ones
* Flush roles out, then add array of new ones.
*
* @param $roles
* @param $user
......@@ -361,7 +361,7 @@ class UserRepository extends BaseRepository
}
/**
* Flush Permissions out, then add array of new ones
* Flush Permissions out, then add array of new ones.
*
* @param $permissions
* @param $user
......
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