formatting
This commit is contained in:
parent
5c3f03855e
commit
7d62186292
@ -116,9 +116,7 @@ trait Users
|
||||
*/
|
||||
public function hasPendingInvitation()
|
||||
{
|
||||
$invitation = UserInvitation::where('user_id', $this->id)->first();
|
||||
|
||||
return $invitation ? true : false;
|
||||
return $this->getPendingInvitation() ? true : false;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -128,8 +126,6 @@ trait Users
|
||||
*/
|
||||
public function getPendingInvitation()
|
||||
{
|
||||
$invitation = UserInvitation::where('user_id', $this->id)->first();
|
||||
|
||||
return $invitation;
|
||||
return UserInvitation::where('user_id', $this->id)->first();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user