From c1679e6057b8bfcd6aafb3422d5d54994465ae7a Mon Sep 17 00:00:00 2001 From: Mark <14284867+xHeaven@users.noreply.github.com> Date: Sun, 29 Dec 2024 09:15:05 +0100 Subject: [PATCH] Inline return --- src/Tenancy.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Tenancy.php b/src/Tenancy.php index cf6ee060..673c55cc 100644 --- a/src/Tenancy.php +++ b/src/Tenancy.php @@ -141,9 +141,7 @@ class Tenancy /** @var class-string $class */ $class = config('tenancy.models.tenant'); - $model = new $class; - - return $model; + return new $class; } /** Name of the column used to relate models to tenants. */