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