@@ -99,7 +99,7 @@ |
||
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | /** |
| 102 | - * @return Helper[] |
|
| 102 | + * @return \ArrayIterator |
|
| 103 | 103 | */ |
| 104 | 104 | public function getIterator() |
| 105 | 105 | { |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | * @param Process $process The Process |
| 108 | 108 | * @param callable|null $callback A PHP callable |
| 109 | 109 | * |
| 110 | - * @return callable |
|
| 110 | + * @return \Closure |
|
| 111 | 111 | */ |
| 112 | 112 | public function wrapCallback(OutputInterface $output, Process $process, callable $callback = null) |
| 113 | 113 | { |
@@ -236,7 +236,7 @@ |
||
| 236 | 236 | /** |
| 237 | 237 | * Sets the redraw frequency. |
| 238 | 238 | * |
| 239 | - * @param int|float $freq The frequency in steps |
|
| 239 | + * @param integer $freq The frequency in steps |
|
| 240 | 240 | */ |
| 241 | 241 | public function setRedrawFrequency(int $freq) |
| 242 | 242 | { |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | * @param OutputInterface $output |
| 38 | 38 | * @param string|null $format Indicator format |
| 39 | 39 | * @param int $indicatorChangeInterval Change interval in milliseconds |
| 40 | - * @param array|null $indicatorValues Animated indicator characters |
|
| 40 | + * @param string[] $indicatorValues Animated indicator characters |
|
| 41 | 41 | */ |
| 42 | 42 | public function __construct(OutputInterface $output, string $format = null, int $indicatorChangeInterval = 100, array $indicatorValues = null) |
| 43 | 43 | { |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | /** |
| 79 | 79 | * Starts the indicator output. |
| 80 | 80 | * |
| 81 | - * @param $message |
|
| 81 | + * @param string $message |
|
| 82 | 82 | */ |
| 83 | 83 | public function start($message) |
| 84 | 84 | { |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | /** |
| 124 | 124 | * Finish the indicator with message. |
| 125 | 125 | * |
| 126 | - * @param $message |
|
| 126 | + * @param string $message |
|
| 127 | 127 | */ |
| 128 | 128 | public function finish($message) |
| 129 | 129 | { |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | /** |
| 202 | 202 | * Sets the minimum width of all columns. |
| 203 | 203 | * |
| 204 | - * @param array $widths |
|
| 204 | + * @param integer[] $widths |
|
| 205 | 205 | * |
| 206 | 206 | * @return $this |
| 207 | 207 | */ |
@@ -262,6 +262,7 @@ discard block |
||
| 262 | 262 | |
| 263 | 263 | /** |
| 264 | 264 | * Adds a row to the table, and re-renders the table. |
| 265 | + * @param string[] $row |
|
| 265 | 266 | */ |
| 266 | 267 | public function appendRow($row): self |
| 267 | 268 | { |
@@ -625,6 +626,7 @@ discard block |
||
| 625 | 626 | |
| 626 | 627 | /** |
| 627 | 628 | * Calculates columns widths. |
| 629 | + * @param TableRows $rows |
|
| 628 | 630 | */ |
| 629 | 631 | private function calculateColumnsWidth(iterable $rows) |
| 630 | 632 | { |
@@ -23,6 +23,7 @@ |
||
| 23 | 23 | * Sets the Console Input. |
| 24 | 24 | * |
| 25 | 25 | * @param InputInterface |
| 26 | + * @return void |
|
| 26 | 27 | */ |
| 27 | 28 | public function setInput(InputInterface $input); |
| 28 | 29 | } |
@@ -51,8 +51,8 @@ discard block |
||
| 51 | 51 | * Does not necessarily return the correct result for short options |
| 52 | 52 | * when multiple flags are combined in the same option. |
| 53 | 53 | * |
| 54 | - * @param string|array $values The value(s) to look for in the raw parameters (can be an array) |
|
| 55 | - * @param mixed $default The default value to return if no result is found |
|
| 54 | + * @param string $values The value(s) to look for in the raw parameters (can be an array) |
|
| 55 | + * @param boolean $default The default value to return if no result is found |
|
| 56 | 56 | * @param bool $onlyParams Only check real parameters, skip those following an end of options (--) signal |
| 57 | 57 | * |
| 58 | 58 | * @return mixed The option value |
@@ -63,6 +63,7 @@ discard block |
||
| 63 | 63 | * Binds the current Input instance with the given arguments and options. |
| 64 | 64 | * |
| 65 | 65 | * @throws RuntimeException |
| 66 | + * @return void |
|
| 66 | 67 | */ |
| 67 | 68 | public function bind(InputDefinition $definition); |
| 68 | 69 | |
@@ -70,6 +71,7 @@ discard block |
||
| 70 | 71 | * Validates the input. |
| 71 | 72 | * |
| 72 | 73 | * @throws RuntimeException When not enough arguments are given |
| 74 | + * @return void |
|
| 73 | 75 | */ |
| 74 | 76 | public function validate(); |
| 75 | 77 | |
@@ -95,9 +97,10 @@ discard block |
||
| 95 | 97 | * Sets an argument value by name. |
| 96 | 98 | * |
| 97 | 99 | * @param string $name The argument name |
| 98 | - * @param string|string[]|null $value The argument value |
|
| 100 | + * @param string $value The argument value |
|
| 99 | 101 | * |
| 100 | 102 | * @throws InvalidArgumentException When argument given doesn't exist |
| 103 | + * @return void |
|
| 101 | 104 | */ |
| 102 | 105 | public function setArgument($name, $value); |
| 103 | 106 | |
@@ -135,6 +138,7 @@ discard block |
||
| 135 | 138 | * @param string|string[]|bool|null $value The option value |
| 136 | 139 | * |
| 137 | 140 | * @throws InvalidArgumentException When option given doesn't exist |
| 141 | + * @return void |
|
| 138 | 142 | */ |
| 139 | 143 | public function setOption($name, $value); |
| 140 | 144 | |
@@ -158,6 +162,7 @@ discard block |
||
| 158 | 162 | * Sets the input interactivity. |
| 159 | 163 | * |
| 160 | 164 | * @param bool $interactive If the input should be interactive |
| 165 | + * @return void |
|
| 161 | 166 | */ |
| 162 | 167 | public function setInteractive($interactive); |
| 163 | 168 | } |
@@ -25,6 +25,7 @@ |
||
| 25 | 25 | * This is mainly useful for testing purpose. |
| 26 | 26 | * |
| 27 | 27 | * @param resource $stream The input stream |
| 28 | + * @return void |
|
| 28 | 29 | */ |
| 29 | 30 | public function setStream($stream); |
| 30 | 31 | |
@@ -28,5 +28,8 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public function getErrorOutput(); |
| 30 | 30 | |
| 31 | + /** |
|
| 32 | + * @return void |
|
| 33 | + */ |
|
| 31 | 34 | public function setErrorOutput(OutputInterface $error); |
| 32 | 35 | } |