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

Fix code style (php-cs-fixer)

This commit is contained in:
PHP CS Fixer 2023-06-28 08:13:36 +00:00
parent 855ebfbd0b
commit 1111607495

View file

@ -39,7 +39,7 @@ class CreatePostgresUserForTenant implements ShouldQueue
$password = $this->tenant->database()->getPassword() ?? PostgresRLSBootstrapper::getDefaultPassword();
// Create the user only if it doesn't already exist
if (! count(DB::select("SELECT usename FROM pg_user WHERE usename = $1", [$name])) > 0) {
if (! count(DB::select('SELECT usename FROM pg_user WHERE usename = $1', [$name])) > 0) {
$formattedStatement = DB::select("SELECT format('CREATE USER %I LOGIN PASSWORD %L', '$name', '$password');")[0]->format;
DB::statement($formattedStatement);
}