Skip to content

Commit

Permalink
Merge branch 'master' of github.com:loonpwn/laradock-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Apr 20, 2019
2 parents 2c34aa9 + 10d5835 commit 9f72887
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Tasks/ParseDotEnvFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Laradock\Tasks;

use Dotenv\Dotenv;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\File;

class ParseDotEnvFile
{
Expand All @@ -17,8 +17,8 @@ class ParseDotEnvFile
public function __construct($path = null, $file = null)
{
$path = $path ?? \Laradock\workingDirectory();
if (!File::exists($path . '/' . $file)) {
Log::warning('Missing ' . $file . ' file at ' . $path);
if (! File::exists($path.'/'.$file)) {
Log::warning('Missing '.$file.' file at '.$path);
}
$this->dotEnv = Dotenv::create($path ?? \Laradock\workingDirectory(), $file);
}
Expand Down

0 comments on commit 9f72887

Please sign in to comment.