mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-14 04:14:05 +00:00
Fix code style (php-cs-fixer)
This commit is contained in:
parent
8e06ae61e6
commit
a08b0533a8
3 changed files with 7 additions and 7 deletions
|
|
@ -7,10 +7,10 @@ namespace Stancl\Tenancy\Actions;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Illuminate\Support\Collection;
|
use Illuminate\Support\Collection;
|
||||||
use Illuminate\Support\LazyCollection;
|
use Illuminate\Support\LazyCollection;
|
||||||
use Stancl\Tenancy\Database\Models\Tenant;
|
|
||||||
use Stancl\Tenancy\Events\StorageSymlinkCreated;
|
|
||||||
use Stancl\Tenancy\Events\CreatingStorageSymlink;
|
|
||||||
use Stancl\Tenancy\Concerns\DealsWithTenantSymlinks;
|
use Stancl\Tenancy\Concerns\DealsWithTenantSymlinks;
|
||||||
|
use Stancl\Tenancy\Database\Models\Tenant;
|
||||||
|
use Stancl\Tenancy\Events\CreatingStorageSymlink;
|
||||||
|
use Stancl\Tenancy\Events\StorageSymlinkCreated;
|
||||||
|
|
||||||
class CreateStorageSymlinksAction
|
class CreateStorageSymlinksAction
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,10 @@ namespace Stancl\Tenancy\Actions;
|
||||||
|
|
||||||
use Illuminate\Support\Collection;
|
use Illuminate\Support\Collection;
|
||||||
use Illuminate\Support\LazyCollection;
|
use Illuminate\Support\LazyCollection;
|
||||||
use Stancl\Tenancy\Database\Models\Tenant;
|
|
||||||
use Stancl\Tenancy\Events\StorageSymlinkRemoved;
|
|
||||||
use Stancl\Tenancy\Events\RemovingStorageSymlink;
|
|
||||||
use Stancl\Tenancy\Concerns\DealsWithTenantSymlinks;
|
use Stancl\Tenancy\Concerns\DealsWithTenantSymlinks;
|
||||||
|
use Stancl\Tenancy\Database\Models\Tenant;
|
||||||
|
use Stancl\Tenancy\Events\RemovingStorageSymlink;
|
||||||
|
use Stancl\Tenancy\Events\StorageSymlinkRemoved;
|
||||||
|
|
||||||
class RemoveStorageSymlinksAction
|
class RemoveStorageSymlinksAction
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ trait DealsWithTenantSymlinks
|
||||||
$storagePath = str_replace('%storage_path%', $suffixBase . $tenantKey, $disks[$disk]);
|
$storagePath = str_replace('%storage_path%', $suffixBase . $tenantKey, $disks[$disk]);
|
||||||
$publicPath = str_replace('%tenant_id%', $tenantKey, $publicPath);
|
$publicPath = str_replace('%tenant_id%', $tenantKey, $publicPath);
|
||||||
|
|
||||||
tenancy()->central(function() use ($symlinks, $publicPath, $storagePath) {
|
tenancy()->central(function () use ($symlinks, $publicPath, $storagePath) {
|
||||||
$symlinks->push([public_path($publicPath) => storage_path($storagePath)]);
|
$symlinks->push([public_path($publicPath) => storage_path($storagePath)]);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue