mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 18:34:04 +00:00
fix php cs fixer config
This commit is contained in:
parent
abbeae3072
commit
99b86bf07a
9 changed files with 10 additions and 9 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue