1
0
Fork 0
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:
PHP CS Fixer 2024-11-09 19:54:56 +00:00
parent 56dd4117ab
commit 19631f4e9a
2 changed files with 4 additions and 2 deletions

View file

@ -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'));
} }

View file

@ -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
{ {