mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 19:34:04 +00:00
Apply fixes from StyleCI
This commit is contained in:
parent
54435e9cab
commit
99dec30512
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ class InitializeTenancyBySubdomain extends InitializeTenancyByDomain
|
|||
// If we're on localhost or an IP address, then we're not visiting a subdomain.
|
||||
$isACentralDomain = in_array($hostname, config('tenancy.central_domains'), true);
|
||||
$notADomain = $isLocalhost || $isIpAddress;
|
||||
$thirdPartyDomain = !Str::endsWith($hostname, config('tenancy.central_domains'));
|
||||
$thirdPartyDomain = ! Str::endsWith($hostname, config('tenancy.central_domains'));
|
||||
|
||||
if ($isACentralDomain || $notADomain || $thirdPartyDomain) {
|
||||
return new NotASubdomainException($hostname);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue