Conditions | 6 |
Paths | 6 |
Total Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
24 | 10 | public function __toString(): string |
|
25 | { |
||
26 | 10 | switch ($this->output->getVerbosity()) { |
|
27 | 10 | case OutputInterface::VERBOSITY_VERBOSE: |
|
28 | 1 | return '-v'; |
|
29 | |||
30 | 9 | case OutputInterface::VERBOSITY_VERY_VERBOSE: |
|
31 | 1 | return '-vv'; |
|
32 | |||
33 | 8 | case OutputInterface::VERBOSITY_DEBUG: |
|
34 | 4 | return '-vvv'; |
|
35 | |||
36 | 4 | case OutputInterface::VERBOSITY_QUIET: |
|
37 | 1 | return '-q'; |
|
38 | |||
39 | 3 | case OutputInterface::VERBOSITY_NORMAL: |
|
40 | default: |
||
41 | 3 | return ''; |
|
42 | } |
||
43 | } |
||
44 | } |
||
45 |