Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Jun 17, 2020
1 parent 6cf90cb commit 85d7711
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/Utilities/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,7 @@ public static function isDbValid($host, $port, $database, $username, $password)

public static function saveDbVariables($host, $port, $database, $username, $password, $prefix = null)
{
if (is_null($prefix)){
$prefix = strtolower(Str::random(3) . '_');
}
$prefix = !is_null($prefix) ? $prefix : strtolower(Str::random(3) . '_');

// Update .env file
static::updateEnv([
Expand Down

0 comments on commit 85d7711

Please sign in to comment.