@@ -180,7 +180,7 @@ |
||
180 | 180 | * |
181 | 181 | * @param string $string |
182 | 182 | * |
183 | - * @return OutputFormatterStyle|bool false if string is not format string |
|
183 | + * @return OutputFormatterStyleInterface|null false if string is not format string |
|
184 | 184 | */ |
185 | 185 | private function createStyleFromString($string) |
186 | 186 | { |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | * @param string $errorMessage Message which will be shown if invalid value from choice list would be picked |
47 | 47 | * @param bool $multiselect Select more than one value separated by comma |
48 | 48 | * |
49 | - * @return int|string|array The selected value or values (the key of the choices array) |
|
49 | + * @return string The selected value or values (the key of the choices array) |
|
50 | 50 | * |
51 | 51 | * @throws \InvalidArgumentException |
52 | 52 | */ |
@@ -334,13 +334,13 @@ discard block |
||
334 | 334 | * otherwise. |
335 | 335 | * |
336 | 336 | * @param OutputInterface $output An Output instance |
337 | - * @param string|array $question The question to ask |
|
337 | + * @param string $question The question to ask |
|
338 | 338 | * @param callable $validator A PHP callback |
339 | 339 | * @param int|false $attempts Max number of times to ask before giving up (false by default, which means infinite) |
340 | 340 | * @param string $default The default answer if none is given by the user |
341 | 341 | * @param array $autocomplete List of values to autocomplete |
342 | 342 | * |
343 | - * @return mixed |
|
343 | + * @return string |
|
344 | 344 | * |
345 | 345 | * @throws \Exception When any of the validators return an error |
346 | 346 | */ |
@@ -399,7 +399,7 @@ discard block |
||
399 | 399 | /** |
400 | 400 | * Returns the helper's input stream. |
401 | 401 | * |
402 | - * @return resource|null The input stream or null if the default STDIN is used |
|
402 | + * @return resource The input stream or null if the default STDIN is used |
|
403 | 403 | */ |
404 | 404 | public function getInputStream() |
405 | 405 | { |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | /** |
112 | 112 | * Sets table style. |
113 | 113 | * |
114 | - * @param TableStyle|string $name The style name or a TableStyle instance |
|
114 | + * @param string $name The style name or a TableStyle instance |
|
115 | 115 | * |
116 | 116 | * @return Table |
117 | 117 | */ |
@@ -529,7 +529,6 @@ discard block |
||
529 | 529 | /** |
530 | 530 | * Gets column width. |
531 | 531 | * |
532 | - * @param int $column |
|
533 | 532 | * |
534 | 533 | * @return int |
535 | 534 | */ |
@@ -19,7 +19,6 @@ |
||
19 | 19 | class TableSeparator extends TableCell |
20 | 20 | { |
21 | 21 | /** |
22 | - * @param string $value |
|
23 | 22 | * @param array $options |
24 | 23 | */ |
25 | 24 | public function __construct(array $options = array()) |
@@ -38,6 +38,9 @@ |
||
38 | 38 | /** @var bool */ |
39 | 39 | private $disableOutput; |
40 | 40 | |
41 | + /** |
|
42 | + * @param boolean $disableOutput |
|
43 | + */ |
|
41 | 44 | public function __construct($disableOutput, $input) |
42 | 45 | { |
43 | 46 | $this->disableOutput = (bool) $disableOutput; |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | * @param string|null $cwd The working directory or null to use the working dir of the current PHP process |
134 | 134 | * @param array|null $env The environment variables or null to use the same environment as the current PHP process |
135 | 135 | * @param string|null $input The input |
136 | - * @param int|float|null $timeout The timeout in seconds or null to disable |
|
136 | + * @param integer $timeout The timeout in seconds or null to disable |
|
137 | 137 | * @param array $options An array of options for proc_open |
138 | 138 | * |
139 | 139 | * @throws RuntimeException When proc_open is not installed |
@@ -762,7 +762,7 @@ discard block |
||
762 | 762 | /** |
763 | 763 | * Stops the process. |
764 | 764 | * |
765 | - * @param int|float $timeout The timeout in seconds |
|
765 | + * @param integer $timeout The timeout in seconds |
|
766 | 766 | * @param int $signal A POSIX signal to send in case the process has not stop at timeout, default is SIGKILL |
767 | 767 | * |
768 | 768 | * @return int The exit-code of the process |
@@ -875,7 +875,7 @@ discard block |
||
875 | 875 | * |
876 | 876 | * To disable the timeout, set this value to null. |
877 | 877 | * |
878 | - * @param int|float|null $timeout The timeout in seconds |
|
878 | + * @param integer $timeout The timeout in seconds |
|
879 | 879 | * |
880 | 880 | * @return self The current Process instance |
881 | 881 | * |
@@ -1087,7 +1087,7 @@ discard block |
||
1087 | 1087 | * |
1088 | 1088 | * This content will be passed to the underlying process standard input. |
1089 | 1089 | * |
1090 | - * @param mixed $input The content |
|
1090 | + * @param string|null $input The content |
|
1091 | 1091 | * |
1092 | 1092 | * @return self The current Process instance |
1093 | 1093 | * |
@@ -108,6 +108,9 @@ |
||
108 | 108 | return $input; |
109 | 109 | } |
110 | 110 | |
111 | + /** |
|
112 | + * @param string $char |
|
113 | + */ |
|
111 | 114 | private static function isSurroundedBy($arg, $char) |
112 | 115 | { |
113 | 116 | return 2 < strlen($arg) && $char === $arg[0] && $char === $arg[strlen($arg) - 1]; |