From 5c3cdd792bc206e7d95e6a2f77e11e86cdc2e90d Mon Sep 17 00:00:00 2001 From: evgen Date: Sat, 12 Nov 2016 18:15:27 +0300 Subject: [PATCH] fix code style --- framework/console/controllers/MigrateController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/console/controllers/MigrateController.php b/framework/console/controllers/MigrateController.php index 0cdd616baf..58941a3b3c 100644 --- a/framework/console/controllers/MigrateController.php +++ b/framework/console/controllers/MigrateController.php @@ -210,7 +210,8 @@ class MigrateController extends BaseMigrateController foreach ($rows as $row) { if ($row['version'] === self::BASE_MIGRATION) { continue; - } elseif (preg_match('/m?(\d{6}_?\d{6})(\D.*)?$/is', $row['version'], $matches)) { + } + if (preg_match('/m?(\d{6}_?\d{6})(\D.*)?$/is', $row['version'], $matches)) { $time = str_replace('_', '', $matches[1]); $history['m' . $time . $matches[2]] = $row; }