mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 10:10:48 +01:00
feat: refactor code and improve readability
This commit is contained in:
@@ -13,10 +13,8 @@ class UserCreateCommand extends Command
|
||||
|
||||
public function handle(): void
|
||||
{
|
||||
if (config('app.env') === 'production') {
|
||||
if (! $this->confirm('You are in production mode. Are you sure you want to continue?')) {
|
||||
return;
|
||||
}
|
||||
if (config('app.env') === 'production' && ! $this->confirm('You are in production mode. Are you sure you want to continue?')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->info('Creating a new user...');
|
||||
|
||||
Reference in New Issue
Block a user