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

Apply fixes from StyleCI

This commit is contained in:
stancl 2019-12-02 19:37:03 +00:00 committed by StyleCI Bot
parent 743369cde7
commit a4fd296d03
3 changed files with 6 additions and 7 deletions

View file

@ -5,7 +5,6 @@ declare(strict_types=1);
namespace Stancl\Tenancy;
use Closure;
use Exception;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Database\DatabaseManager as BaseDatabaseManager;
use Illuminate\Foundation\Application;
@ -239,10 +238,10 @@ class DatabaseManager
return $this->app[$databaseManagers[$driver]];
}
/**
* What key on the connection config should be used to separate tenants.
*
*
* @param string $connectionName
* @return string
*/
@ -250,7 +249,7 @@ class DatabaseManager
{
if ($this->getDriver($this->getBaseConnection($connectionName)) === 'pgsql'
&& $this->app['config']['tenancy.separate_by'] === 'schema') {
return 'schema';
return 'schema';
}
return 'database';