@@ -1022,6 +1022,9 @@ discard block |
||
1022 | 1022 | $this->defaultCommand = $commandName; |
1023 | 1023 | } |
1024 | 1024 | |
1025 | + /** |
|
1026 | + * @param string $string |
|
1027 | + */ |
|
1025 | 1028 | private function stringWidth($string) |
1026 | 1029 | { |
1027 | 1030 | if (false === $encoding = mb_detect_encoding($string, null, true)) { |
@@ -1031,6 +1034,9 @@ discard block |
||
1031 | 1034 | return mb_strwidth($string, $encoding); |
1032 | 1035 | } |
1033 | 1036 | |
1037 | + /** |
|
1038 | + * @param integer $width |
|
1039 | + */ |
|
1034 | 1040 | private function splitStringByWidth($string, $width) |
1035 | 1041 | { |
1036 | 1042 | // str_split is not suitable for multi-byte characters, we should use preg_split to get char array properly. |
@@ -194,7 +194,7 @@ |
||
194 | 194 | * |
195 | 195 | * @param string $string |
196 | 196 | * |
197 | - * @return OutputFormatterStyle|bool false if string is not format string |
|
197 | + * @return OutputFormatterStyleInterface|null false if string is not format string |
|
198 | 198 | */ |
199 | 199 | private function createStyleFromString($string) |
200 | 200 | { |
@@ -59,7 +59,7 @@ |
||
59 | 59 | * |
60 | 60 | * @param string|null $foreground The style foreground color name |
61 | 61 | * @param string|null $background The style background color name |
62 | - * @param array $options The style options |
|
62 | + * @param string[] $options The style options |
|
63 | 63 | */ |
64 | 64 | public function __construct($foreground = null, $background = null, array $options = array()) |
65 | 65 | { |
@@ -141,6 +141,9 @@ discard block |
||
141 | 141 | return isset(self::$formats[$name]) ? self::$formats[$name] : null; |
142 | 142 | } |
143 | 143 | |
144 | + /** |
|
145 | + * @param string $message |
|
146 | + */ |
|
144 | 147 | public function setMessage($message, $name = 'message') |
145 | 148 | { |
146 | 149 | $this->messages[$name] = $message; |
@@ -299,7 +302,7 @@ discard block |
||
299 | 302 | /** |
300 | 303 | * Sets the redraw frequency. |
301 | 304 | * |
302 | - * @param int|float $freq The frequency in steps |
|
305 | + * @param integer $freq The frequency in steps |
|
303 | 306 | */ |
304 | 307 | public function setRedrawFrequency($freq) |
305 | 308 | { |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * @param OutputInterface $output |
37 | 37 | * @param string|null $format Indicator format |
38 | 38 | * @param int $indicatorChangeInterval Change interval in milliseconds |
39 | - * @param array|null $indicatorValues Animated indicator characters |
|
39 | + * @param string[] $indicatorValues Animated indicator characters |
|
40 | 40 | */ |
41 | 41 | public function __construct(OutputInterface $output, $format = null, $indicatorChangeInterval = 100, $indicatorValues = null) |
42 | 42 | { |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | /** |
114 | 114 | * Starts the indicator output. |
115 | 115 | * |
116 | - * @param $message |
|
116 | + * @param string $message |
|
117 | 117 | */ |
118 | 118 | public function start($message) |
119 | 119 | { |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | /** |
160 | 160 | * Finish the indicator with message. |
161 | 161 | * |
162 | - * @param $message |
|
162 | + * @param string $message |
|
163 | 163 | */ |
164 | 164 | public function finish($message) |
165 | 165 | { |
@@ -149,7 +149,7 @@ |
||
149 | 149 | * Sets table column style. |
150 | 150 | * |
151 | 151 | * @param int $columnIndex Column index |
152 | - * @param TableStyle|string $name The style name or a TableStyle instance |
|
152 | + * @param TableStyle $name The style name or a TableStyle instance |
|
153 | 153 | * |
154 | 154 | * @return Table |
155 | 155 | */ |
@@ -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()) |
@@ -49,6 +49,11 @@ |
||
49 | 49 | require_once self::$fixturesPath.'/FooSubnamespaced2Command.php'; |
50 | 50 | } |
51 | 51 | |
52 | + /** |
|
53 | + * @param string $text |
|
54 | + * |
|
55 | + * @return string |
|
56 | + */ |
|
52 | 57 | protected function normalizeLineBreaks($text) |
53 | 58 | { |
54 | 59 | return str_replace(PHP_EOL, "\n", $text); |
@@ -173,6 +173,9 @@ |
||
173 | 173 | return new StreamOutput(fopen('php://memory', 'r+', false), $verbosity, $decorated); |
174 | 174 | } |
175 | 175 | |
176 | + /** |
|
177 | + * @param string $expected |
|
178 | + */ |
|
176 | 179 | protected function generateOutput($expected) |
177 | 180 | { |
178 | 181 | $count = substr_count($expected, "\n"); |