From 0bb3e58230d7a241f42f058352c167f2181c1bc7 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Wed, 6 Mar 2024 15:05:19 +0100 Subject: [PATCH] Remove unused variable $time --- src/DbalMigrator.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/DbalMigrator.php b/src/DbalMigrator.php index 5e782dbfe..9bb92b553 100644 --- a/src/DbalMigrator.php +++ b/src/DbalMigrator.php @@ -82,7 +82,6 @@ private function assertAllMigrationsAreTransactional(MigrationPlanList $migratio private function executePlan(MigrationPlanList $migrationsPlan, MigratorConfiguration $migratorConfiguration): array { $sql = []; - $time = 0; foreach ($migrationsPlan->getItems() as $plan) { $versionExecutionResult = $this->executor->execute($plan, $migratorConfiguration); @@ -95,7 +94,6 @@ private function executePlan(MigrationPlanList $migrationsPlan, MigratorConfigur } $sql[(string) $plan->getVersion()] = $versionExecutionResult->getSql(); - $time += $versionExecutionResult->getTime(); } return $sql;