mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 15:14:04 +00:00
Fix code style (php-cs-fixer)
This commit is contained in:
parent
0ee54da29c
commit
dd952c727f
1 changed files with 2 additions and 2 deletions
|
|
@ -6,8 +6,8 @@ namespace Stancl\Tenancy\Commands;
|
||||||
|
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use Illuminate\Contracts\Console\Kernel;
|
use Illuminate\Contracts\Console\Kernel;
|
||||||
use Stancl\Tenancy\Database\Models\Tenant;
|
|
||||||
use Stancl\Tenancy\Concerns\HasTenantOptions;
|
use Stancl\Tenancy\Concerns\HasTenantOptions;
|
||||||
|
use Stancl\Tenancy\Database\Models\Tenant;
|
||||||
use Symfony\Component\Console\Input\ArgvInput;
|
use Symfony\Component\Console\Input\ArgvInput;
|
||||||
use Symfony\Component\Console\Output\ConsoleOutput;
|
use Symfony\Component\Console\Output\ConsoleOutput;
|
||||||
|
|
||||||
|
|
@ -41,7 +41,7 @@ class Run extends Command
|
||||||
// $this->getTenants() doesn't return tenants in the same order as the tenants passed in the tenants option
|
// $this->getTenants() doesn't return tenants in the same order as the tenants passed in the tenants option
|
||||||
// Map the passed tenant keys to the fetched tenant models to correct the order
|
// Map the passed tenant keys to the fetched tenant models to correct the order
|
||||||
$tenants = array_map(function (string $tenantKey) use ($tenants) {
|
$tenants = array_map(function (string $tenantKey) use ($tenants) {
|
||||||
return $tenants->filter(fn(Tenant $tenant) => $tenant->getTenantKey() === $tenantKey)->first();
|
return $tenants->filter(fn (Tenant $tenant) => $tenant->getTenantKey() === $tenantKey)->first();
|
||||||
}, $this->option('tenants'));
|
}, $this->option('tenants'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue