1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-13 05:44:04 +00:00

Fix code style (php-cs-fixer)

This commit is contained in:
PHP CS Fixer 2022-07-27 11:45:40 +00:00
parent c0b65a98c0
commit 77100f7f28
6 changed files with 8 additions and 21 deletions

View file

@ -88,11 +88,12 @@ class Link extends Command
$tenants = $this->option('remove') && filled($this->option('tenants'))
? collect($this->option('tenants'))
: $this->getTenants()->map(function(Tenant $tenant) { return $tenant->getTenantKey(); });
: $this->getTenants()->map(function (Tenant $tenant) {
return $tenant->getTenantKey();
});
return $tenants
->map(function ($tenant_key) use ($suffix_base, $disk_urls, $disks) {
$map = [];
foreach ($disk_urls as $disk => $public_path) {
@ -111,18 +112,15 @@ class Link extends Command
}
return $map;
})->flatten(1)
->mapWithKeys(function ($item) {return $item; })
->mapWithKeys(function ($item) {
return $item;
})
->all();
}
/**
* Determine if the provided path is a symlink that can be removed.
*
* @param string $link
* @param bool $force
* @return bool
*/
protected function isRemovableSymlink(string $link, bool $force): bool
{