Skip to content

Commit

Permalink
style: remove unecessaty comment on Progress
Browse files Browse the repository at this point in the history
  • Loading branch information
dimtrovich authored and adhocore committed Mar 28, 2024
1 parent c067357 commit e409eac
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Output/ProgressBar.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 . '</end> '; // bar
$progress[] = '<' . $this->options['labelColor'] . '>' . $label . '</end> '; // label
$progress[] = '<' . $this->options['color'] . '>' . $number . '</end>'; // percentage
$progress[] = '<' . $this->options['color'] . '>' . $bar . '</end> ';
$progress[] = '<' . $this->options['labelColor'] . '>' . $label . '</end> ';
$progress[] = '<' . $this->options['color'] . '>' . $number . '</end>';
} else if ($this->options['labelPosition'] === 'top') {
// display :Label
// ====> 50%
$progress[] = '<' . $this->options['labelColor'] . '>' . $label . "\n" . '</end>'; // label
$progress[] = '<' . $this->options['labelColor'] . '>' . $label . "\n" . '</end>';
$progress[] = '<' . $this->options['color'] . '>' . $bar . ' ' . $number . '</end>'; // bar + percentage
} else {
// display (on right) : ====> 50% Label
// display (on bottom): ====> 50%
// Label
$progress[] = '<' . $this->options['color'] . '>' . $bar . ' ' . $number . '</end> '; // bar + percentage
$progress[] = '<' . $this->options['labelColor'] . '>' . $label . '</end>'; // label
$progress[] = '<' . $this->options['labelColor'] . '>' . $label . '</end>';
}

return implode('', $progress);
Expand Down

0 comments on commit e409eac

Please sign in to comment.