Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function prepare(CommandData $commandData, FormatterOptions $options) |
||
33 | { |
||
34 | $width = $this->getTerminalWidth(); |
||
35 | if (!$width) { |
||
36 | $width = $this->defaultWidth; |
||
37 | } |
||
38 | |||
39 | // Enforce minimum and maximum widths |
||
40 | $width = min($width, $this->getMaxWidth($commandData)); |
||
41 | $width = max($width, $this->getMinWidth($commandData)); |
||
42 | |||
43 | $options->setWidth($width); |
||
44 | } |
||
45 | |||
70 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.