1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-06 04:34:02 +00:00

Rename pullPendingTenant to pullPending and don't pass bool to that method

This commit is contained in:
lukinovec 2022-10-21 10:30:20 +02:00
parent e172408576
commit 1899429723
2 changed files with 7 additions and 7 deletions

View file

@ -69,13 +69,13 @@ trait HasPending
}
/** Pull a pending tenant. */
public static function pullPendingTenant(): Tenant
public static function pullPending(): Tenant
{
return static::pullPendingTenantFromPool(true);
return static::pullPendingFromPool(true);
}
/** Try to pull a tenant from the pool of pending tenants. */
public static function pullPendingTenantFromPool(bool $firstOrCreate = false): ?Tenant
public static function pullPendingFromPool(bool $firstOrCreate = false): ?Tenant
{
if (! static::onlyPending()->exists()) {
if (! $firstOrCreate) {