mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 17:44:04 +00:00
Fix code style (php-cs-fixer)
This commit is contained in:
parent
87212e5390
commit
77b5e508d6
6 changed files with 11 additions and 6 deletions
|
|
@ -1,5 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Stancl\Tenancy\Database\Concerns;
|
namespace Stancl\Tenancy\Database\Concerns;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -10,5 +10,6 @@ abstract class TenancyEvent
|
||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
public Tenancy $tenancy,
|
public Tenancy $tenancy,
|
||||||
) {}
|
) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,8 @@ class InitializeTenancyByDomain extends IdentificationMiddleware
|
||||||
public function __construct(
|
public function __construct(
|
||||||
protected Tenancy $tenancy,
|
protected Tenancy $tenancy,
|
||||||
protected DomainTenantResolver $resolver,
|
protected DomainTenantResolver $resolver,
|
||||||
) {}
|
) {
|
||||||
|
}
|
||||||
|
|
||||||
/** @return \Illuminate\Http\Response|mixed */
|
/** @return \Illuminate\Http\Response|mixed */
|
||||||
public function handle(Request $request, Closure $next): mixed
|
public function handle(Request $request, Closure $next): mixed
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,8 @@ class InitializeTenancyByPath extends IdentificationMiddleware
|
||||||
public function __construct(
|
public function __construct(
|
||||||
protected Tenancy $tenancy,
|
protected Tenancy $tenancy,
|
||||||
protected PathTenantResolver $resolver,
|
protected PathTenantResolver $resolver,
|
||||||
) {}
|
) {
|
||||||
|
}
|
||||||
|
|
||||||
/** @return \Illuminate\Http\Response|mixed */
|
/** @return \Illuminate\Http\Response|mixed */
|
||||||
public function handle(Request $request, Closure $next): mixed
|
public function handle(Request $request, Closure $next): mixed
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,8 @@ class InitializeTenancyByRequestData extends IdentificationMiddleware
|
||||||
public function __construct(
|
public function __construct(
|
||||||
protected Tenancy $tenancy,
|
protected Tenancy $tenancy,
|
||||||
protected RequestDataTenantResolver $resolver,
|
protected RequestDataTenantResolver $resolver,
|
||||||
) {}
|
) {
|
||||||
|
}
|
||||||
|
|
||||||
/** @return \Illuminate\Http\Response|mixed */
|
/** @return \Illuminate\Http\Response|mixed */
|
||||||
public function handle(Request $request, Closure $next): mixed
|
public function handle(Request $request, Closure $next): mixed
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
use Stancl\Tenancy\CacheManager;
|
|
||||||
use Stancl\Tenancy\Contracts\Tenant;
|
use Stancl\Tenancy\Contracts\Tenant;
|
||||||
use Stancl\Tenancy\Tenancy;
|
use Stancl\Tenancy\Tenancy;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue