mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 18:04:03 +00:00
Apply fixes from StyleCI
This commit is contained in:
parent
5d2b1e3a72
commit
73124cd801
6 changed files with 18 additions and 8 deletions
|
|
@ -1,6 +1,10 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Stancl\Tenancy\Contracts;
|
||||
|
||||
/** Empty interface implemented by Stancl\Tenancy\Tenant have a dependency-injectable contract for the current tenant. */
|
||||
interface Tenant {}
|
||||
interface Tenant
|
||||
{
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,12 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Stancl\Tenancy\TenancyBoostrappers;
|
||||
|
||||
use Stancl\Tenancy\Contracts\TenancyBootstrapper;
|
||||
|
||||
class CacheTenancyBootstrapped implements TenancyBootstrapper
|
||||
class CacheTenancyBoostrapper implements TenancyBootstrapper
|
||||
{
|
||||
/** @var \Illuminate\Cache\CacheManager */
|
||||
protected $originalCache;
|
||||
|
|
@ -23,4 +25,4 @@ class CacheTenancyBootstrapped implements TenancyBootstrapper
|
|||
return $this->originalCache;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Stancl\Tenancy\TenancyBoostrappers;
|
||||
|
||||
use Stancl\Tenancy\Contracts\TenancyBootstrapper;
|
||||
|
|
@ -54,4 +56,4 @@ class FilesystemTenancyBootstrapper implements TenancyBootstrapper
|
|||
Storage::disk($disk)->getAdapter()->setPathPrefix($this->originalPaths['disks'][$disk]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Stancl\Tenancy\TenantDatabaseManagers;
|
||||
|
||||
use Stancl\Tenancy\Contracts\TenancyBootstrapper;
|
||||
|
|
@ -41,4 +43,4 @@ class RedisTenancyBootstrapper implements TenancyBootstrapper
|
|||
{
|
||||
return config('tenancy.redis.prefixed_connections');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ class TenantManagerv2
|
|||
|
||||
public function bootstrapTenancy(Tenant $tenant): self
|
||||
{
|
||||
foreach($this->tenancyBootstrappers() as $bootstrapper) {
|
||||
foreach ($this->tenancyBootstrappers() as $bootstrapper) {
|
||||
$this->app[$bootstrapper]->start($tenant);
|
||||
}
|
||||
|
||||
|
|
@ -63,7 +63,7 @@ class TenantManagerv2
|
|||
|
||||
public function endTenancy(): self
|
||||
{
|
||||
foreach($this->tenancyBootstrappers() as $bootstrapper) {
|
||||
foreach ($this->tenancyBootstrappers() as $bootstrapper) {
|
||||
$this->app[$bootstrapper]->end();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue