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

Fix code style (php-cs-fixer)

This commit is contained in:
PHP CS Fixer 2022-09-29 20:21:29 +00:00
parent a94227a19c
commit a08480f310
5 changed files with 10 additions and 5 deletions

View file

@ -17,7 +17,8 @@ class CacheTenancyBootstrapper implements TenancyBootstrapper
public function __construct( public function __construct(
protected Application $app protected Application $app
) {} ) {
}
public function bootstrap(Tenant $tenant): void public function bootstrap(Tenant $tenant): void
{ {

View file

@ -14,7 +14,8 @@ class ScoutTenancyBootstrapper implements TenancyBootstrapper
public function __construct( public function __construct(
protected Repository $config, protected Repository $config,
) {} ) {
}
public function bootstrap(Tenant $tenant): void public function bootstrap(Tenant $tenant): void
{ {

View file

@ -19,7 +19,8 @@ class DatabaseManager
protected Application $app, protected Application $app,
protected BaseDatabaseManager $database, protected BaseDatabaseManager $database,
protected Repository $config, protected Repository $config,
) {} ) {
}
/** Connect to a tenant's database. */ /** Connect to a tenant's database. */
public function connectToTenant(TenantWithDatabase $tenant): void public function connectToTenant(TenantWithDatabase $tenant): void

View file

@ -25,7 +25,8 @@ class TenantConfig implements Feature
public function __construct( public function __construct(
protected Repository $config, protected Repository $config,
) {} ) {
}
public function bootstrap(Tenancy $tenancy): void public function bootstrap(Tenancy $tenancy): void
{ {

View file

@ -12,7 +12,8 @@ class CreateTenantConnection
{ {
public function __construct( public function __construct(
protected DatabaseManager $database, protected DatabaseManager $database,
) {} ) {
}
public function handle(TenantEvent $event): void public function handle(TenantEvent $event): void
{ {