From 9cca58b70ccb81583e63dd593201dcf99a91bf51 Mon Sep 17 00:00:00 2001 From: Landon Dyck Date: Sun, 27 Dec 2020 15:44:53 -0600 Subject: [PATCH] styleci fixes fix style errors fix error call --- app/Console/Commands/CreateAccount.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Console/Commands/CreateAccount.php b/app/Console/Commands/CreateAccount.php index 03dfd93265b..d694369bb8b 100644 --- a/app/Console/Commands/CreateAccount.php +++ b/app/Console/Commands/CreateAccount.php @@ -2,8 +2,6 @@ namespace App\Console\Commands; -use function Safe\touch; -use App\Helpers\InstanceHelper; use App\Models\Account\Account; use Illuminate\Console\Command; @@ -34,13 +32,15 @@ public function handle() { $email = $this->option('email'); if (empty($email)) { - $this.error('! You must specify an email'); - return; + $this->error('! You must specify an email'); } - + $password = $this->option('password'); if (empty($password)) { - $this.error('! You must specify a password'); + $this->error('! You must specify a password'); + } + + if (empty($email) || empty($password)) { return; }