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:
parent
54a4258fa4
commit
7eb8356c74
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue