Skip to content

Commit 365ba92

Browse files
committed
Shorten line length with sprintf
1 parent 5b2833d commit 365ba92

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/AntiMattr/MongoDB/Migrations/Tools/Console/Command/StatusCommand.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,13 @@ public function execute(InputInterface $input, OutputInterface $output)
149149
if ($executedUnavailableMigrations) {
150150
$output->writeln("\n <info>==</info> Previously Executed Unavailable Migration Versions\n");
151151
foreach ($executedUnavailableMigrations as $executedUnavailableMigration) {
152-
$output->writeln(' <comment>>></comment> '.Configuration::formatVersion($executedUnavailableMigration).' (<comment>'.$executedUnavailableMigration.'</comment>)');
152+
$output->writeln(
153+
sprintf(
154+
' <comment>>></comment> %s (<comment>%s</comment>)',
155+
Configuration::formatVersion($executedUnavailableMigration),
156+
$executedUnavailableMigration
157+
)
158+
);
153159
}
154160
}
155161
}

0 commit comments

Comments
 (0)