@@ -54,7 +54,7 @@ |
||
54 | 54 | if (Str::contains(file_get_contents($path), "$key") === false) { |
55 | 55 | $this->info("Now writing .env with $key=$value ..."); |
56 | 56 | file_put_contents($path, PHP_EOL."$key=$value".PHP_EOL, FILE_APPEND); |
57 | - }else{ |
|
57 | + } else{ |
|
58 | 58 | $this->info("Now updating $key value in your .env to $value ..."); |
59 | 59 | // update existing entry |
60 | 60 | file_put_contents($path, str_replace( |
@@ -115,8 +115,9 @@ |
||
115 | 115 | } |
116 | 116 | } |
117 | 117 | |
118 | - if ($this->hasError) |
|
119 | - throw new VTPassErrorException($this->message, "$code"); |
|
118 | + if ($this->hasError) { |
|
119 | + throw new VTPassErrorException($this->message, "$code"); |
|
120 | + } |
|
120 | 121 | |
121 | 122 | } |
122 | 123 |