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:
parent
e172408576
commit
1899429723
2 changed files with 7 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue