From 71fa6305bff833bf7c5647a6fa16d0d5ac1d6843 Mon Sep 17 00:00:00 2001 From: Phan An Date: Sun, 3 Dec 2017 17:54:34 +0100 Subject: [PATCH] Apply fixes from StyleCI (#691) --- app/Console/Commands/Init.php | 7 ++++--- config/dotenv-editor.php | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/Console/Commands/Init.php b/app/Console/Commands/Init.php index 0f1d776c..b92658af 100644 --- a/app/Console/Commands/Init.php +++ b/app/Console/Commands/Init.php @@ -108,7 +108,7 @@ class Init extends Command 'DB_PORT' => '', 'DB_DATABASE' => '', 'DB_USERNAME' => '', - 'DB_PASSWORD' => '' + 'DB_PASSWORD' => '', ]; $config['DB_CONNECTION'] = $this->choice( @@ -117,7 +117,7 @@ class Init extends Command 'mysql' => 'MySQL/MariaDB', 'pqsql' => 'PostgreSQL', 'sqlsrv' => 'SQL Server', - 'sqlite-e2e' => 'SQLite' + 'sqlite-e2e' => 'SQLite', ], 'mysql' ); @@ -153,7 +153,7 @@ class Init extends Command private function setUpAdminAccount() { $this->info("Let's create the admin account."); - $name = $this->ask("Your name"); + $name = $this->ask('Your name'); $email = $this->ask('Your email address'); $passwordConfirmed = false; while (!$passwordConfirmed) { @@ -189,6 +189,7 @@ class Init extends Command if (is_dir($path) && is_readable($path)) { Setting::set('media_path', $path); + return; } diff --git a/config/dotenv-editor.php b/config/dotenv-editor.php index 583039c6..fb7ea4e3 100644 --- a/config/dotenv-editor.php +++ b/config/dotenv-editor.php @@ -1,6 +1,6 @@ base_path('storage/dotenv-editor/backups/') + 'backupPath' => base_path('storage/dotenv-editor/backups/'), -); +];