From 9d9b61cf14e6e2a52856dbb4cc46e553299c2e13 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Fri, 14 Sep 2018 19:17:30 +0200 Subject: [PATCH] Fixed message displayed during installation process --- data/migrations/Version20180913205455.php | 4 ++-- module/CLI/src/Command/Install/InstallCommand.php | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/data/migrations/Version20180913205455.php b/data/migrations/Version20180913205455.php index 0a156293..a0fe3451 100644 --- a/data/migrations/Version20180913205455.php +++ b/data/migrations/Version20180913205455.php @@ -46,12 +46,12 @@ final class Version20180913205455 extends AbstractMigration $qb->setParameters([ 'id' => $row['id'], - 'obfuscatedAddr' => $this->determineAddress((string) $addr, $row), + 'obfuscatedAddr' => $this->determineAddress((string) $addr), ])->execute(); } } - private function determineAddress(string $addr, array $row): ?string + private function determineAddress(string $addr): ?string { if ($addr === IpAddress::LOCALHOST) { return $addr; diff --git a/module/CLI/src/Command/Install/InstallCommand.php b/module/CLI/src/Command/Install/InstallCommand.php index 68afa422..fbd36fe4 100644 --- a/module/CLI/src/Command/Install/InstallCommand.php +++ b/module/CLI/src/Command/Install/InstallCommand.php @@ -235,7 +235,11 @@ class InstallCommand extends Command $this->phpBinary = $this->phpFinder->find(false) ?: 'php'; } - $this->io->writeln('Running "' . sprintf('%s %s', $this->phpBinary, $command) . '"'); + $this->io->write( + ' [Running "' . sprintf('%s %s', $this->phpBinary, $command) . '"] ', + false, + OutputInterface::VERBOSITY_VERBOSE + ); $process = $this->processHelper->run($output, sprintf('%s %s', $this->phpBinary, $command)); if ($process->isSuccessful()) { $this->io->writeln(' Success!');