Skip to content

Commit

Permalink
ci: Resolve linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims committed Dec 19, 2023
1 parent 0c16f92 commit ee9946d
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,8 @@ public function getRoles(): array
}
}

if ($this->roleAuthenticatedUsing !== []) {
foreach ($this->roleAuthenticatedUsing as $using) {
$response[] = $using;
}
foreach ($this->roleAuthenticatedUsing as $using) {
$response[] = $using;
}

return array_unique(array_values($response));
Expand Down Expand Up @@ -348,12 +346,6 @@ public function isBlocked(): ?bool

public function isEmailVerified(): bool
{
$emailVerified = filter_var($this->data['email_verified'], FILTER_VALIDATE_BOOLEAN);

if ($emailVerified === true) {
return true;
}

return false;
return filter_var($this->data['email_verified'], FILTER_VALIDATE_BOOLEAN);
}
}

0 comments on commit ee9946d

Please sign in to comment.