write(ReportHelper::renderToCommandLine($report, false)); } /** * Run an Action during the migration * * This helper method will allow to simply run Action scripts during migration. * * @param Action $action Callable action to run * @param array $options Parameters that can be passed to action call */ protected function runAction(Action $action, $options = []): void { $report = $this->propagate($action)($options); if ($report instanceof Report) { $this->addReport($report); } } }