mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 20:14:03 +00:00
Fix code style (php-cs-fixer)
This commit is contained in:
parent
56dd4117ab
commit
19631f4e9a
2 changed files with 4 additions and 2 deletions
|
|
@ -47,7 +47,9 @@ class InitializeTenancyByDomain extends IdentificationMiddleware
|
||||||
$domain = $this->getDomain($request);
|
$domain = $this->getDomain($request);
|
||||||
|
|
||||||
// Mainly used with origin identification if the header isn't specified and e.g. universal routes are used
|
// Mainly used with origin identification if the header isn't specified and e.g. universal routes are used
|
||||||
if (! $domain) return false;
|
if (! $domain) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return ! in_array($domain, config('tenancy.identification.central_domains'));
|
return ! in_array($domain, config('tenancy.identification.central_domains'));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@ use Exception;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Http\Response;
|
use Illuminate\Http\Response;
|
||||||
use Stancl\Tenancy\Concerns\UsableWithEarlyIdentification;
|
use Stancl\Tenancy\Concerns\UsableWithEarlyIdentification;
|
||||||
use Stancl\Tenancy\Resolvers\DomainTenantResolver;
|
|
||||||
use Stancl\Tenancy\Contracts\TenantCouldNotBeIdentifiedException;
|
use Stancl\Tenancy\Contracts\TenantCouldNotBeIdentifiedException;
|
||||||
|
use Stancl\Tenancy\Resolvers\DomainTenantResolver;
|
||||||
|
|
||||||
class InitializeTenancyByDomainOrSubdomain extends InitializeTenancyBySubdomain
|
class InitializeTenancyByDomainOrSubdomain extends InitializeTenancyBySubdomain
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue