@@ -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 | { |
@@ -480,7 +480,7 @@ |
||
480 | 480 | } |
481 | 481 | } |
482 | 482 | |
483 | - return new TableRows(function () use ($rows, $unmergedRows) { |
|
483 | + return new TableRows(function() use ($rows, $unmergedRows) { |
|
484 | 484 | foreach ($rows as $rowKey => $row) { |
485 | 485 | yield $this->fillCells($row); |
486 | 486 |
@@ -480,7 +480,7 @@ |
||
480 | 480 | } |
481 | 481 | } |
482 | 482 | |
483 | - return new TableRows(function () use ($rows, $unmergedRows) { |
|
483 | + return new TableRows(function () use ($rows, $unmergedRows){ |
|
484 | 484 | foreach ($rows as $rowKey => $row) { |
485 | 485 | yield $this->fillCells($row); |
486 | 486 |
@@ -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 | } |
@@ -64,7 +64,7 @@ |
||
64 | 64 | /** |
65 | 65 | * Overwrites the previous output with a new message. |
66 | 66 | * |
67 | - * @param array|string $message |
|
67 | + * @param string $message |
|
68 | 68 | */ |
69 | 69 | public function overwrite($message) |
70 | 70 | { |
@@ -36,6 +36,7 @@ discard block |
||
36 | 36 | * @param string|iterable $messages The message as an iterable of strings or a single string |
37 | 37 | * @param bool $newline Whether to add a newline |
38 | 38 | * @param int $options A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL |
39 | + * @return void |
|
39 | 40 | */ |
40 | 41 | public function write($messages, $newline = false, $options = 0); |
41 | 42 | |
@@ -44,6 +45,7 @@ discard block |
||
44 | 45 | * |
45 | 46 | * @param string|iterable $messages The message as an iterable of strings or a single string |
46 | 47 | * @param int $options A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL |
48 | + * @return void |
|
47 | 49 | */ |
48 | 50 | public function writeln($messages, $options = 0); |
49 | 51 | |
@@ -51,6 +53,7 @@ discard block |
||
51 | 53 | * Sets the verbosity of the output. |
52 | 54 | * |
53 | 55 | * @param int $level The level of verbosity (one of the VERBOSITY constants) |
56 | + * @return void |
|
54 | 57 | */ |
55 | 58 | public function setVerbosity($level); |
56 | 59 | |
@@ -93,6 +96,7 @@ discard block |
||
93 | 96 | * Sets the decorated flag. |
94 | 97 | * |
95 | 98 | * @param bool $decorated Whether to decorate the messages |
99 | + * @return void |
|
96 | 100 | */ |
97 | 101 | public function setDecorated($decorated); |
98 | 102 | |
@@ -103,6 +107,9 @@ discard block |
||
103 | 107 | */ |
104 | 108 | public function isDecorated(); |
105 | 109 | |
110 | + /** |
|
111 | + * @return void |
|
112 | + */ |
|
106 | 113 | public function setFormatter(OutputFormatterInterface $formatter); |
107 | 114 | |
108 | 115 | /** |
@@ -36,7 +36,7 @@ |
||
36 | 36 | /** |
37 | 37 | * Returns the default answer normalizer. |
38 | 38 | * |
39 | - * @return callable |
|
39 | + * @return \Closure |
|
40 | 40 | */ |
41 | 41 | private function getDefaultNormalizer() |
42 | 42 | { |
@@ -43,7 +43,7 @@ |
||
43 | 43 | $default = $this->getDefault(); |
44 | 44 | $regex = $this->trueAnswerRegex; |
45 | 45 | |
46 | - return function ($answer) use ($default, $regex) { |
|
46 | + return function($answer) use ($default, $regex) { |
|
47 | 47 | if (\is_bool($answer)) { |
48 | 48 | return $answer; |
49 | 49 | } |
@@ -43,7 +43,7 @@ |
||
43 | 43 | $default = $this->getDefault(); |
44 | 44 | $regex = $this->trueAnswerRegex; |
45 | 45 | |
46 | - return function ($answer) use ($default, $regex) { |
|
46 | + return function ($answer) use ($default, $regex){ |
|
47 | 47 | if (\is_bool($answer)) { |
48 | 48 | return $answer; |
49 | 49 | } |
@@ -130,6 +130,7 @@ |
||
130 | 130 | * Add newline(s). |
131 | 131 | * |
132 | 132 | * @param int $count The number of newlines |
133 | + * @return void |
|
133 | 134 | */ |
134 | 135 | public function newLine($count = 1); |
135 | 136 |