mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 18:14:04 +00:00
simplify if condition
This commit is contained in:
parent
9c9a3d09fc
commit
9ea05394e2
1 changed files with 1 additions and 3 deletions
|
|
@ -53,11 +53,9 @@ class SQLiteDatabaseManager implements TenantDatabaseManager
|
|||
public function getPath(string $name): string
|
||||
{
|
||||
if (static::$path) {
|
||||
// The path is set, so return the full path with the database name
|
||||
return str(static::$path)->append(DIRECTORY_SEPARATOR)->append($name)->toString();
|
||||
return static::$path . DIRECTORY_SEPARATOR . $name;
|
||||
}
|
||||
|
||||
// The path is not set so return the default path
|
||||
return database_path($name);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue