@@ -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); |
@@ -655,6 +655,9 @@ |
||
655 | 655 | return new StreamOutput(fopen('php://memory', 'r+', false), $verbosity, $decorated); |
656 | 656 | } |
657 | 657 | |
658 | + /** |
|
659 | + * @param string $expected |
|
660 | + */ |
|
658 | 661 | protected function generateOutput($expected) |
659 | 662 | { |
660 | 663 | $count = substr_count($expected, "\n"); |
@@ -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"); |
@@ -58,7 +58,7 @@ |
||
58 | 58 | * Adds a service as event listener. |
59 | 59 | * |
60 | 60 | * @param string $eventName Event for which the listener is added |
61 | - * @param array $callback The service ID of the listener service & the method |
|
61 | + * @param string[] $callback The service ID of the listener service & the method |
|
62 | 62 | * name that has to be called |
63 | 63 | * @param int $priority The higher this value, the earlier an event listener |
64 | 64 | * will be triggered in the chain. |