Skip to content

Commit 3c5e010

Browse files
fix(Commands): convert selectedDb property to local variable in MakAll.php
1 parent 898f1d5 commit 3c5e010

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Commands/MakeAll.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ public function handle()
4848
exit;
4949
}
5050

51-
$this->selectedDb = $this->hasOption('selected_db') && $this->option('selected_db') ? $this->option('selected_db') : config('repository.default_db');
51+
$selectedDb = $this->option('selected_db') ?: config('repository.default_db');
52+
5253
$force = $this->option('force');
5354
$delete = $this->option('delete');
5455
$detectForeignKeys = $this->option('foreign-keys');

0 commit comments

Comments
 (0)