1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 14:54:03 +00:00

Fix code style (php-cs-fixer)

This commit is contained in:
PHP CS Fixer 2022-10-10 13:13:06 +00:00
parent 54a4258fa4
commit 7eb8356c74

View file

@ -46,12 +46,12 @@ class Tenant extends Model implements Contracts\Tenant
return $this->getAttribute($this->getTenantKeyName()); return $this->getAttribute($this->getTenantKeyName());
} }
public static function current(): Tenant|null public static function current(): self|null
{ {
return tenant(); return tenant();
} }
public static function currentOrFail(): Tenant public static function currentOrFail(): self
{ {
return static::current() ?? throw new TenancyNotInitializedException; return static::current() ?? throw new TenancyNotInitializedException;
} }