From c44a4c56d5b5d8913f1ac35b97543ceb1429c334 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Fri, 22 Jul 2022 09:46:08 +0200 Subject: [PATCH] Rename variables in CreatePendingTenants --- src/Commands/CreatePendingTenants.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Commands/CreatePendingTenants.php b/src/Commands/CreatePendingTenants.php index c918fedb..06f74062 100644 --- a/src/Commands/CreatePendingTenants.php +++ b/src/Commands/CreatePendingTenants.php @@ -29,22 +29,22 @@ class CreatePendingTenants extends Command { $this->info('Deploying pending tenants.'); - $pendingObjectifCount = (int) ($this->option('count') ?? config('tenancy.pending.count')); + $maxPendingTenantCount = (int) ($this->option('count') ?? config('tenancy.pending.count')); - $pendingCurrentCount = $this->getPendingTenantCount(); + $pendingTenantCount = $this->getPendingTenantCount(); $deployedCount = 0; - while ($pendingCurrentCount < $pendingObjectifCount) { + while ($pendingTenantCount < $maxPendingTenantCount) { tenancy()->model()::createPending(); // Update the number of pending tenants every time with a query to get a live count // To prevent deploying too many tenants if pending tenants are being created simultaneously somewhere else // While running this command - $pendingCurrentCount = $this->getPendingTenantCount(); + $pendingTenantCount = $this->getPendingTenantCount(); $deployedCount++; } $this->info($deployedCount . ' ' . str('tenant')->plural($deployedCount) . ' deployed.'); - $this->info($pendingObjecifCount . ' ' . str('tenant')->plural($pendingObjectifCount) . ' ready to be used.'); + $this->info($maxPendingTenantCount . ' ' . str('tenant')->plural($maxPendingTenantCount) . ' ready to be used.'); return 1; }