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

fix php cs fixer config

This commit is contained in:
Samuel Štancl 2022-09-29 15:37:01 +02:00
parent abbeae3072
commit 99b86bf07a
9 changed files with 10 additions and 9 deletions

View file

@ -10,6 +10,7 @@ $rules = [
'operators' => [ 'operators' => [
'=>' => null, '=>' => null,
'|' => 'no_space', '|' => 'no_space',
'&' => 'no_space',
] ]
], ],
'blank_line_after_namespace' => true, 'blank_line_after_namespace' => true,

View file

@ -13,7 +13,7 @@ use Stancl\Tenancy\Database\Contracts\TenantWithDatabase as Tenant;
class DatabaseConfig class DatabaseConfig
{ {
/** The tenant whose database we're dealing with. */ /** The tenant whose database we're dealing with. */
public Tenant & Model $tenant; public Tenant&Model $tenant;
/** Database username generator (can be set by the developer.) */ /** Database username generator (can be set by the developer.) */
public static Closure|null $usernameGenerator = null; public static Closure|null $usernameGenerator = null;

View file

@ -10,7 +10,7 @@ use Stancl\Tenancy\Database\Contracts\TenantWithDatabase;
class SyncedResourceSaved class SyncedResourceSaved
{ {
public Syncable & Model $model; public Syncable&Model $model;
/** @var (TenantWithDatabase&Model)|null */ /** @var (TenantWithDatabase&Model)|null */
public TenantWithDatabase|null $tenant; public TenantWithDatabase|null $tenant;

View file

@ -20,7 +20,7 @@ class CreateDatabase implements ShouldQueue
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function __construct( public function __construct(
protected TenantWithDatabase & Model $tenant, protected TenantWithDatabase&Model $tenant,
) { ) {
} }

View file

@ -19,7 +19,7 @@ class DeleteDatabase implements ShouldQueue
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function __construct( public function __construct(
protected TenantWithDatabase & Model $tenant, protected TenantWithDatabase&Model $tenant,
) { ) {
} }

View file

@ -15,9 +15,9 @@ class DeleteDomains
{ {
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
protected TenantWithDatabase & Model $tenant; protected TenantWithDatabase&Model $tenant;
public function __construct(TenantWithDatabase & Model $tenant) public function __construct(TenantWithDatabase&Model $tenant)
{ {
$this->tenant = $tenant; $this->tenant = $tenant;
} }

View file

@ -18,7 +18,7 @@ class MigrateDatabase implements ShouldQueue
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function __construct( public function __construct(
protected TenantWithDatabase & Model $tenant, protected TenantWithDatabase&Model $tenant,
) { ) {
} }

View file

@ -18,7 +18,7 @@ class SeedDatabase implements ShouldQueue
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function __construct( public function __construct(
protected TenantWithDatabase & Model $tenant, protected TenantWithDatabase&Model $tenant,
) { ) {
} }

View file

@ -95,7 +95,7 @@ class Tenancy
return static::model()->query(); return static::model()->query();
} }
public static function model(): Tenant & Model public static function model(): Tenant&Model
{ {
$class = config('tenancy.tenant_model'); $class = config('tenancy.tenant_model');