formatting

This commit is contained in:
Denis Duliçi 2020-06-17 14:02:02 +03:00
parent 6cf90cb5cd
commit 85d7711748

View File

@ -201,9 +201,7 @@ class Installer
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([