feat: refactor code and improve readability

This commit is contained in:
Rico van Zelst
2025-03-04 12:50:19 +01:00
parent efc263e257
commit 68d18311b4
8 changed files with 25 additions and 34 deletions

View File

@@ -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...');