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

Fix code style (php-cs-fixer)

This commit is contained in:
PHP CS Fixer 2023-06-27 10:38:48 +00:00
parent a568aa3626
commit c712505d4e

View file

@ -43,7 +43,6 @@ class PostgresRLSBootstrapper implements TenancyBootstrapper
$this->database->purge($centralConnection); $this->database->purge($centralConnection);
/** @var TenantWithDatabase $tenant */ /** @var TenantWithDatabase $tenant */
$this->config->set([ $this->config->set([
'database.connections.' . $centralConnection . '.username' => $tenant->database()->getUsername() ?? $tenant->getTenantKey(), 'database.connections.' . $centralConnection . '.username' => $tenant->database()->getUsername() ?? $tenant->getTenantKey(),
'database.connections.' . $centralConnection . '.password' => $tenant->database()->getPassword() ?? $this->getDefaultPassword(), 'database.connections.' . $centralConnection . '.password' => $tenant->database()->getPassword() ?? $this->getDefaultPassword(),
@ -56,7 +55,7 @@ class PostgresRLSBootstrapper implements TenancyBootstrapper
$this->database->purge($centralConnection); $this->database->purge($centralConnection);
$this->config->set('database.connections.' . $centralConnection, $this->originalCentralConnectionConfig);; $this->config->set('database.connections.' . $centralConnection, $this->originalCentralConnectionConfig);
} }
public static function getDefaultPassword(): string public static function getDefaultPassword(): string