From e95d0f536e8c1e3223d9da6a8f21986ed9ccd06b Mon Sep 17 00:00:00 2001 From: Erjan Date: Thu, 12 Jul 2018 13:20:29 +0300 Subject: [PATCH] Format output table --- src/Commands/MigrateCheckCommand.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Commands/MigrateCheckCommand.php b/src/Commands/MigrateCheckCommand.php index 01ef016..7db21e3 100644 --- a/src/Commands/MigrateCheckCommand.php +++ b/src/Commands/MigrateCheckCommand.php @@ -57,7 +57,9 @@ public function handle() ); if ($pendingMigrations) { - $this->table(['Pending migrations'], [ $pendingMigrations ]); + $this->table(['Pending migrations'], array_map(function ($migration) { + return [ $migration ]; + }, $pendingMigrations)); return 1; }