From b9a66fed9596597256e7ec8d00601f1661cec293 Mon Sep 17 00:00:00 2001 From: Shlee Date: Sun, 16 Feb 2020 13:07:53 +0800 Subject: [PATCH] Update Installer.php --- app/Console/Commands/Installer.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Console/Commands/Installer.php b/app/Console/Commands/Installer.php index 35d4a6573..31f4ba999 100644 --- a/app/Console/Commands/Installer.php +++ b/app/Console/Commands/Installer.php @@ -97,7 +97,6 @@ class Installer extends Command if(extension_loaded($ext) == false) { $this->error("- {$ext} extension not found, aborting installation"); exit; - } else { } } $this->info("- Required PHP extensions found!"); @@ -221,7 +220,7 @@ class Installer extends Command $envPath = app()->environmentFilePath(); $payload = file_get_contents($envPath); - if ($existing = $this->existingEnv($key, $payload)) { + if ($existing == $this->existingEnv($key, $payload)) { $payload = str_replace("{$key}={$existing}", "{$key}=\"{$value}\"", $payload); $this->storeEnv($payload); } else {