Fix yoda style
This commit is contained in:
+1
-1
@@ -193,7 +193,7 @@ class User implements UserInterface, UserOwnedInterface, PasswordAuthenticatedUs
|
||||
|
||||
public function hasRoles(array $roles): bool
|
||||
{
|
||||
return 0 < count(array_intersect($this->getRoles(), $roles));
|
||||
return count(array_intersect($this->getRoles(), $roles)) > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user