From 9c8fe0c381f1a675ed2110f34ada000ff0550c02 Mon Sep 17 00:00:00 2001 From: ToshY <31921460+ToshY@users.noreply.github.com> Date: Thu, 16 Feb 2023 21:36:20 +0100 Subject: [PATCH] removed preceding whitespace in front of colons --- .../Migrations/Tools/Console/Command/ExecuteCommand.php | 2 +- .../Migrations/Tools/Console/Command/MigrateCommand.php | 4 ++-- .../Tests/Tools/Console/Command/ExecuteCommandTest.php | 2 +- .../Tests/Tools/Console/Command/MigrateCommandTest.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Doctrine/Migrations/Tools/Console/Command/ExecuteCommand.php b/lib/Doctrine/Migrations/Tools/Console/Command/ExecuteCommand.php index 023b16252..8bea68fd5 100644 --- a/lib/Doctrine/Migrations/Tools/Console/Command/ExecuteCommand.php +++ b/lib/Doctrine/Migrations/Tools/Console/Command/ExecuteCommand.php @@ -163,7 +163,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int } $this->io->success(sprintf( - 'Successfully migrated version(s) : %s : [%s]', + 'Successfully migrated version(s): %s: [%s]', implode(', ', $versions), strtoupper($plan->getDirection()) )); diff --git a/lib/Doctrine/Migrations/Tools/Console/Command/MigrateCommand.php b/lib/Doctrine/Migrations/Tools/Console/Command/MigrateCommand.php index 87f5de8f8..9bc8f17ff 100644 --- a/lib/Doctrine/Migrations/Tools/Console/Command/MigrateCommand.php +++ b/lib/Doctrine/Migrations/Tools/Console/Command/MigrateCommand.php @@ -95,7 +95,7 @@ protected function configure(): void You can specify the version you wish to migrate to using an alias: %command.full_name% prev - These alias are defined : first, latest, prev, current and next + These alias are defined: first, latest, prev, current and next You can specify the version you wish to migrate to using an number against the current version: @@ -216,7 +216,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int } $this->io->success(sprintf( - 'Successfully migrated to version : %s', + 'Successfully migrated to version: %s', $version )); $this->io->newLine(); diff --git a/tests/Doctrine/Migrations/Tests/Tools/Console/Command/ExecuteCommandTest.php b/tests/Doctrine/Migrations/Tests/Tools/Console/Command/ExecuteCommandTest.php index 2215cbb63..3a6969207 100644 --- a/tests/Doctrine/Migrations/Tests/Tools/Console/Command/ExecuteCommandTest.php +++ b/tests/Doctrine/Migrations/Tests/Tools/Console/Command/ExecuteCommandTest.php @@ -118,7 +118,7 @@ public function testExecute(): void self::assertSame(0, $this->executeCommandTester->getStatusCode()); self::assertStringContainsString('[notice] Executing 1 up', trim($this->executeCommandTester->getDisplay(true))); - self::assertStringContainsString('[OK] Successfully migrated version(s) : 1 : [UP]', trim($this->executeCommandTester->getDisplay(true))); + self::assertStringContainsString('[OK] Successfully migrated version(s): 1: [UP]', trim($this->executeCommandTester->getDisplay(true))); } public function testExecuteMultiple(): void diff --git a/tests/Doctrine/Migrations/Tests/Tools/Console/Command/MigrateCommandTest.php b/tests/Doctrine/Migrations/Tests/Tools/Console/Command/MigrateCommandTest.php index 5c18bebb5..13df07b38 100644 --- a/tests/Doctrine/Migrations/Tests/Tools/Console/Command/MigrateCommandTest.php +++ b/tests/Doctrine/Migrations/Tests/Tools/Console/Command/MigrateCommandTest.php @@ -294,7 +294,7 @@ public function testExecuteMigrate(): void self::assertSame(0, $this->migrateCommandTester->getStatusCode()); self::assertStringContainsString('[notice] Migrating up to A', trim($this->migrateCommandTester->getDisplay(true))); - self::assertStringContainsString('[OK] Successfully migrated to version : A', trim($this->migrateCommandTester->getDisplay(true))); + self::assertStringContainsString('[OK] Successfully migrated to version: A', trim($this->migrateCommandTester->getDisplay(true))); } public function testExecuteMigrateUpdatesMigrationsTableWhenNeeded(): void