From 351057c5f6655e4914a85b0cc1d8504a14ee6b0c Mon Sep 17 00:00:00 2001 From: Ishan Vyas Date: Fri, 24 Nov 2023 18:05:07 +0530 Subject: [PATCH] Fix CS --- src/Command/BakeMigrationDiffCommand.php | 1 + tests/TestCase/TestCase.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Command/BakeMigrationDiffCommand.php b/src/Command/BakeMigrationDiffCommand.php index cb939ed5..e53b3408 100644 --- a/src/Command/BakeMigrationDiffCommand.php +++ b/src/Command/BakeMigrationDiffCommand.php @@ -144,6 +144,7 @@ protected function setup(Arguments $args) $this->migrationsFiles = glob($this->migrationsPath . '*.php') ?: []; $this->phinxTable = $this->getPhinxTable($this->plugin); + /** @var \Cake\Database\Connection $connection */ $connection = ConnectionManager::get($this->connection); $this->tables = $connection->getSchemaCollection()->listTables(); $tableExists = in_array($this->phinxTable, $this->tables, true); diff --git a/tests/TestCase/TestCase.php b/tests/TestCase/TestCase.php index 9f2068fa..859e9c2e 100644 --- a/tests/TestCase/TestCase.php +++ b/tests/TestCase/TestCase.php @@ -16,8 +16,8 @@ */ namespace Migrations\Test\TestCase; -use Cake\Routing\Router; use Cake\Console\TestSuite\ConsoleIntegrationTestTrait; +use Cake\Routing\Router; use Cake\TestSuite\StringCompareTrait; use Cake\TestSuite\TestCase as BaseTestCase;