Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
KABBOUCHI authored and StyleCIBot committed Jan 12, 2021
1 parent 1ba872c commit 8e67830
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Controllers/ImpersonateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ public function take(Request $request, $id, $guardName = null)
{
$guardName = $guardName ?? config('nova-impersonate.default_impersonator_guard');

if (method_exists($request->user(), 'canImpersonate') && !$request->user()->canImpersonate()) {
if (method_exists($request->user(), 'canImpersonate') && ! $request->user()->canImpersonate()) {
abort(403);
}

$user_to_impersonate = $this->manager->findUserById($id, $guardName);

if (method_exists($user_to_impersonate, 'canBeImpersonated') && !$user_to_impersonate->canBeImpersonated()) {
if (method_exists($user_to_impersonate, 'canBeImpersonated') && ! $user_to_impersonate->canBeImpersonated()) {
abort(403);
}

Expand Down

0 comments on commit 8e67830

Please sign in to comment.