mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-25 20:23:49 +01:00
Minor text and sprintf changes
This commit is contained in:
parent
5dfda25bb4
commit
994dae2a83
@ -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;
|
||||||
|
@ -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'
|
||||||
));
|
));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user