Conditions | 3 |
Paths | 3 |
Total Lines | 23 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function from(int $from): void |
||
24 | { |
||
25 | $firstLine = true; |
||
26 | $i = $from; |
||
27 | while ($i-- > 0) { |
||
28 | |||
29 | $content = ""; |
||
30 | |||
31 | if ($firstLine) { |
||
32 | $firstLine = false; |
||
33 | } else { |
||
34 | $content .= $this->util->cursor->up(1); |
||
35 | $content .= $this->util->cursor->startOfCurrentLine(); |
||
36 | $content .= $this->util->cursor->deleteCurrentLine(); |
||
37 | } |
||
38 | |||
39 | $content .= $this->label; |
||
40 | $content .= $i; |
||
41 | |||
42 | $this->output->write($this->parser->apply($content)); |
||
43 | sleep(1); |
||
44 | } |
||
45 | } |
||
46 | } |
||
47 |