diff --git a/src/Output/ProgressBar.php b/src/Output/ProgressBar.php index 85eb91e..edbc029 100644 --- a/src/Output/ProgressBar.php +++ b/src/Output/ProgressBar.php @@ -338,20 +338,20 @@ protected function progressBarFormatted(string $bar, string $number, string $lab $progress = []; if ($this->options['labelPosition'] === 'left') { // display : ====> Label 50% - $progress[] = '<' . $this->options['color'] . '>' . $bar . ' '; // bar - $progress[] = '<' . $this->options['labelColor'] . '>' . $label . ' '; // label - $progress[] = '<' . $this->options['color'] . '>' . $number . ''; // percentage + $progress[] = '<' . $this->options['color'] . '>' . $bar . ' '; + $progress[] = '<' . $this->options['labelColor'] . '>' . $label . ' '; + $progress[] = '<' . $this->options['color'] . '>' . $number . ''; } else if ($this->options['labelPosition'] === 'top') { // display :Label // ====> 50% - $progress[] = '<' . $this->options['labelColor'] . '>' . $label . "\n" . ''; // label + $progress[] = '<' . $this->options['labelColor'] . '>' . $label . "\n" . ''; $progress[] = '<' . $this->options['color'] . '>' . $bar . ' ' . $number . ''; // bar + percentage } else { // display (on right) : ====> 50% Label // display (on bottom): ====> 50% // Label $progress[] = '<' . $this->options['color'] . '>' . $bar . ' ' . $number . ' '; // bar + percentage - $progress[] = '<' . $this->options['labelColor'] . '>' . $label . ''; // label + $progress[] = '<' . $this->options['labelColor'] . '>' . $label . ''; } return implode('', $progress);