@@ -216,6 +216,9 @@ |
||
216 | 216 | } |
217 | 217 | } |
218 | 218 | |
219 | + /** |
|
220 | + * @param boolean $internalErrors |
|
221 | + */ |
|
219 | 222 | protected static function getXmlErrors($internalErrors) |
220 | 223 | { |
221 | 224 | $errors = array(); |
@@ -643,7 +643,7 @@ discard block |
||
643 | 643 | * @param string $namespace An optional namespace name |
644 | 644 | * @param bool $asDom Whether to return a DOM or an XML string |
645 | 645 | * |
646 | - * @return string|\DOMDocument An XML string representing the Application |
|
646 | + * @return string An XML string representing the Application |
|
647 | 647 | * |
648 | 648 | * @deprecated since version 2.3, to be removed in 3.0. |
649 | 649 | */ |
@@ -1102,6 +1102,9 @@ discard block |
||
1102 | 1102 | $this->defaultCommand = $commandName; |
1103 | 1103 | } |
1104 | 1104 | |
1105 | + /** |
|
1106 | + * @param string $string |
|
1107 | + */ |
|
1105 | 1108 | private function stringWidth($string) |
1106 | 1109 | { |
1107 | 1110 | if (!function_exists('mb_strwidth')) { |
@@ -1115,6 +1118,9 @@ discard block |
||
1115 | 1118 | return mb_strwidth($string, $encoding); |
1116 | 1119 | } |
1117 | 1120 | |
1121 | + /** |
|
1122 | + * @param integer $width |
|
1123 | + */ |
|
1118 | 1124 | private function splitStringByWidth($string, $width) |
1119 | 1125 | { |
1120 | 1126 | // str_split is not suitable for multi-byte characters, we should use preg_split to get char array properly. |
@@ -196,7 +196,7 @@ |
||
196 | 196 | * |
197 | 197 | * @param string $string |
198 | 198 | * |
199 | - * @return OutputFormatterStyle|bool false if string is not format string |
|
199 | + * @return OutputFormatterStyleInterface|null false if string is not format string |
|
200 | 200 | */ |
201 | 201 | private function createStyleFromString($string) |
202 | 202 | { |
@@ -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 | * @api |
65 | 65 | */ |
@@ -105,7 +105,7 @@ |
||
105 | 105 | * @param Process $process The Process |
106 | 106 | * @param callable|null $callback A PHP callable |
107 | 107 | * |
108 | - * @return callable |
|
108 | + * @return \Closure |
|
109 | 109 | */ |
110 | 110 | public function wrapCallback(OutputInterface $output, Process $process, $callback = null) |
111 | 111 | { |
@@ -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()) |
@@ -463,7 +463,7 @@ |
||
463 | 463 | * |
464 | 464 | * @param bool $asDom Whether to return a DOM or an XML string |
465 | 465 | * |
466 | - * @return string|\DOMDocument An XML string representing the InputDefinition |
|
466 | + * @return string An XML string representing the InputDefinition |
|
467 | 467 | * |
468 | 468 | * @deprecated since version 2.3, to be removed in 3.0. |
469 | 469 | */ |
@@ -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); |
@@ -172,6 +172,9 @@ |
||
172 | 172 | $this->assertEquals('not yet', $dialog->ask($this->getOutputStream(), 'Do you have a job?', 'not yet')); |
173 | 173 | } |
174 | 174 | |
175 | + /** |
|
176 | + * @param string $input |
|
177 | + */ |
|
175 | 178 | protected function getInputStream($input) |
176 | 179 | { |
177 | 180 | $stream = fopen('php://memory', 'r+', false); |