| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | 12 | public function create(int $max = 0): ProgressBar |
|
| 24 | { |
||
| 25 | 12 | $bar = $this->output->createProgressBar($max); |
|
| 26 | 12 | $bar->setBarCharacter('<fg=green>⚬</>'); |
|
| 27 | 12 | $bar->setEmptyBarCharacter('<fg=red>⚬</>'); |
|
| 28 | 12 | $bar->setProgressCharacter('<fg=green>➤</>'); |
|
| 29 | 12 | $bar->setRedrawFrequency(1); |
|
| 30 | 12 | $bar->maxSecondsBetweenRedraws(0); |
|
| 31 | 12 | $bar->minSecondsBetweenRedraws(0); |
|
| 32 | 12 | $bar->setFormat( |
|
| 33 | 12 | "%message%\n%current%/%max% [%bar%] %percent:3s%%\n" |
|
| 34 | ); |
||
| 35 | |||
| 36 | 12 | return $bar; |
|
| 37 | } |
||
| 39 |