| 1 | <?php |
||
| 8 | class PrepareTerminalWidthOption implements PrepareFormatter |
||
| 9 | { |
||
| 10 | /** var Application */ |
||
| 11 | protected $application; |
||
| 12 | |||
| 13 | /** var int */ |
||
| 14 | protected $defaultWidth; |
||
| 15 | |||
| 16 | /** var int */ |
||
| 17 | protected $maxWidth = PHP_INT_MAX; |
||
| 18 | |||
| 19 | /** var int */ |
||
| 20 | protected $minWidth = 0; |
||
| 21 | |||
| 22 | public function __construct($defaultWidth = 0) |
||
| 26 | |||
| 27 | public function setApplication(Application $application) |
||
| 31 | |||
| 32 | public function prepare(CommandData $commandData, FormatterOptions $options) |
||
| 45 | |||
| 46 | protected function getTerminalWidth() |
||
| 59 | |||
| 60 | protected function getMaxWidth(CommandData $commandData) |
||
| 64 | |||
| 65 | protected function getMinWidth(CommandData $commandData) |
||
| 69 | } |
||
| 70 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.