Conditions | 6 |
Paths | 5 |
Total Lines | 19 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function perform(): void |
||
28 | { |
||
29 | switch ($this->argument('helper')) { |
||
30 | case 'verbose': |
||
31 | $this->write($this->isVerbose() ? 'true' : 'false'); |
||
32 | break; |
||
33 | |||
34 | case 'sprintf': |
||
35 | $this->sprintf('%s world', 'hello'); |
||
36 | break; |
||
37 | |||
38 | case 'writeln': |
||
39 | $this->writeln('hello'); |
||
40 | break; |
||
41 | |||
42 | case 'table': |
||
43 | $table = $this->table(['id', 'value']); |
||
44 | $table->addRow(['1', 'true']); |
||
45 | $table->render(); |
||
46 | } |
||
49 |