| Conditions | 5 |
| Paths | 9 |
| Total Lines | 30 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public function run(): void |
||
| 41 | { |
||
| 42 | $firstLine = true; |
||
| 43 | $i = $this->from; |
||
| 44 | while (true) { |
||
| 45 | |||
| 46 | $content = ""; |
||
| 47 | |||
| 48 | if ($firstLine) { |
||
| 49 | $firstLine = false; |
||
| 50 | } else { |
||
| 51 | $content .= $this->util->cursor->up(1); |
||
| 52 | $content .= $this->util->cursor->startOfCurrentLine(); |
||
| 53 | $content .= $this->util->cursor->deleteCurrentLine(); |
||
| 54 | } |
||
| 55 | |||
| 56 | $content .= $this->label; |
||
| 57 | if ($i > 0) { |
||
| 58 | $content .= $i; |
||
| 59 | } |
||
| 60 | |||
| 61 | $this->output->write($this->parser->apply($content)); |
||
| 62 | if ($i < 1) { |
||
| 63 | break; |
||
| 64 | } |
||
| 65 | |||
| 66 | sleep(1); |
||
| 67 | --$i; |
||
| 68 | } |
||
| 69 | } |
||
| 70 | } |
||
| 71 |