formatting

This commit is contained in:
Denis Duliçi 2022-07-08 00:10:38 +03:00
parent 5c3f03855e
commit 7d62186292

View File

@ -116,9 +116,7 @@ trait Users
*/ */
public function hasPendingInvitation() public function hasPendingInvitation()
{ {
$invitation = UserInvitation::where('user_id', $this->id)->first(); return $this->getPendingInvitation() ? true : false;
return $invitation ? true : false;
} }
/** /**
@ -128,8 +126,6 @@ trait Users
*/ */
public function getPendingInvitation() public function getPendingInvitation()
{ {
$invitation = UserInvitation::where('user_id', $this->id)->first(); return UserInvitation::where('user_id', $this->id)->first();
return $invitation;
} }
} }