Minor text and sprintf changes

This commit is contained in:
Gabriel Caruso 2017-12-28 15:27:32 -02:00
parent 5dfda25bb4
commit 994dae2a83
2 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ final class ProcessCommand extends Command
private function processFiles(array $fileInfos): void private function processFiles(array $fileInfos): void
{ {
$totalFiles = count($fileInfos); $totalFiles = count($fileInfos);
$this->consoleStyle->title(sprintf('Processing %s File%s', $totalFiles, $totalFiles === 1 ? '' : 's')); $this->consoleStyle->title(sprintf('Processing %d file%s', $totalFiles, $totalFiles === 1 ? '' : 's'));
$this->consoleStyle->progressStart($totalFiles); $this->consoleStyle->progressStart($totalFiles);
$i = 1; $i = 1;

View File

@ -44,7 +44,7 @@ final class ProcessCommandReporter
public function reportChangedFiles(array $changedFiles): void public function reportChangedFiles(array $changedFiles): void
{ {
$this->consoleStyle->title(sprintf( $this->consoleStyle->title(sprintf(
'%s Changed File%s', '%d Changed file%s',
count($changedFiles), count($changedFiles),
count($changedFiles) === 1 ? '' : 's' count($changedFiles) === 1 ? '' : 's'
)); ));