1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 13:14:05 +00:00

Fix code style (php-cs-fixer)

This commit is contained in:
PHP CS Fixer 2022-09-29 08:04:15 +00:00
parent 0ee54da29c
commit dd952c727f

View file

@ -6,8 +6,8 @@ namespace Stancl\Tenancy\Commands;
use Illuminate\Console\Command;
use Illuminate\Contracts\Console\Kernel;
use Stancl\Tenancy\Database\Models\Tenant;
use Stancl\Tenancy\Concerns\HasTenantOptions;
use Stancl\Tenancy\Database\Models\Tenant;
use Symfony\Component\Console\Input\ArgvInput;
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
// Map the passed tenant keys to the fetched tenant models to correct the order
$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'));
}