From d7f7ad3ce63fcf2412a78047411a504c69d5df81 Mon Sep 17 00:00:00 2001 From: masiorama Date: Tue, 22 Feb 2022 14:33:19 +0100 Subject: [PATCH] Remove redundant store variable --- src/Commands/MigrateFresh.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Commands/MigrateFresh.php b/src/Commands/MigrateFresh.php index 5f893e20..0de54dc7 100644 --- a/src/Commands/MigrateFresh.php +++ b/src/Commands/MigrateFresh.php @@ -36,13 +36,11 @@ final class MigrateFresh extends Command */ public function handle() { - $dropViewsFlag = $this->option('drop-views'); - - tenancy()->runForMultiple($this->option('tenants'), function ($tenant) use ($dropViewsFlag) { + tenancy()->runForMultiple($this->option('tenants'), function ($tenant) { $this->info('Dropping tables.'); $this->call('db:wipe', array_filter([ '--database' => 'tenant', - '--drop-views' => $dropViewsFlag, + '--drop-views' => $this->option('drop-views'), '--force' => true, ]));