From a2b631f274bdd3af2bd922a519d99df931fcf280 Mon Sep 17 00:00:00 2001 From: "Hermann D. Schimpf" Date: Tue, 11 Apr 2023 20:34:35 -0400 Subject: [PATCH] Removed unnecessary spaces from the ProgressBar --- src/Internals/ProgressBarWorker/HasProgressBar.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Internals/ProgressBarWorker/HasProgressBar.php b/src/Internals/ProgressBarWorker/HasProgressBar.php index 299a9d9..189b59e 100644 --- a/src/Internals/ProgressBarWorker/HasProgressBar.php +++ b/src/Internals/ProgressBarWorker/HasProgressBar.php @@ -25,10 +25,11 @@ private function createProgressBar(): void { $this->progressBar->setRedrawFrequency( 100 ); $this->progressBar->minSecondsBetweenRedraws( 0.1 ); $this->progressBar->maxSecondsBetweenRedraws( 0.2 ); - $this->progressBar->setFormat(" %current% of %max%: %message%\n". - " [%bar%] %percent:3s%%\n". - " elapsed: %elapsed:6s%, remaining: %remaining:-6s%, %items_per_second% items/s".(PARALLEL_EXT_LOADED ? "\n" : ','). - " memory: %threads_memory%\n"); + $this->progressBar->setFormat(format: + "%current% of %max%: %message%\n". + "[%bar%] %percent:3s%%\n". + "elapsed: %elapsed:6s%, remaining: %remaining:-6s%, %items_per_second% items/s".(PARALLEL_EXT_LOADED ? "\n" : ','). + "memory: %threads_memory%\n"); // set initial values $this->progressBar->setMessage('Starting...'); $this->progressBar->setMessage('??', 'items_per_second');