Conditions | 3 |
Paths | 4 |
Total Lines | 15 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
11 | 3 | public function output() |
|
12 | { |
||
13 | |||
14 | 3 | if ($this->description) { |
|
15 | 3 | $this->climate->out($this->description)->br(); |
|
16 | 2 | } |
|
17 | |||
18 | // Print the usage statement with the arguments without a prefix at the end. |
||
19 | 3 | $this->climate->out($this->summarize()); |
|
20 | |||
21 | // Print argument details. |
||
22 | 3 | foreach (['required', 'optional'] as $type) { |
|
23 | 3 | $this->outputArguments($this->filter->{$type}(), $type); |
|
24 | 2 | } |
|
25 | 3 | } |
|
26 | |||
36 |