@@ -35,6 +35,9 @@ |
||
| 35 | 35 | $this->removeDirectory($this->directory); |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | + /** |
|
| 39 | + * @param string $directory |
|
| 40 | + */ |
|
| 38 | 41 | protected function removeDirectory($directory) |
| 39 | 42 | { |
| 40 | 43 | $iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($directory), \RecursiveIteratorIterator::CHILD_FIRST); |
@@ -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(); |
@@ -764,7 +764,7 @@ discard block |
||
| 764 | 764 | /** |
| 765 | 765 | * Tries to figure out the terminal dimensions based on the current environment. |
| 766 | 766 | * |
| 767 | - * @return array Array containing width and height |
|
| 767 | + * @return integer[] Array containing width and height |
|
| 768 | 768 | * |
| 769 | 769 | * @deprecated since version 3.2, to be removed in 4.0. Create a Terminal instance instead. |
| 770 | 770 | */ |
@@ -1080,6 +1080,9 @@ discard block |
||
| 1080 | 1080 | return $this; |
| 1081 | 1081 | } |
| 1082 | 1082 | |
| 1083 | + /** |
|
| 1084 | + * @param integer $width |
|
| 1085 | + */ |
|
| 1083 | 1086 | private function splitStringByWidth($string, $width) |
| 1084 | 1087 | { |
| 1085 | 1088 | // str_split is not suitable for multi-byte characters, we should use preg_split to get char array properly. |
@@ -637,7 +637,7 @@ |
||
| 637 | 637 | * |
| 638 | 638 | * @param string $name The helper name |
| 639 | 639 | * |
| 640 | - * @return mixed The helper value |
|
| 640 | + * @return \Symfony\Component\Console\Helper\HelperInterface The helper value |
|
| 641 | 641 | * |
| 642 | 642 | * @throws LogicException if no HelperSet is defined |
| 643 | 643 | * @throws InvalidArgumentException if the helper is not defined |
@@ -187,7 +187,7 @@ |
||
| 187 | 187 | * |
| 188 | 188 | * @param string $string |
| 189 | 189 | * |
| 190 | - * @return OutputFormatterStyle|false false if string is not format string |
|
| 190 | + * @return OutputFormatterStyleInterface|null false if string is not format string |
|
| 191 | 191 | */ |
| 192 | 192 | private function createStyleFromString($string) |
| 193 | 193 | { |
@@ -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 | { |
@@ -110,7 +110,7 @@ |
||
| 110 | 110 | * @param Process $process The Process |
| 111 | 111 | * @param callable|null $callback A PHP callable |
| 112 | 112 | * |
| 113 | - * @return callable |
|
| 113 | + * @return \Closure |
|
| 114 | 114 | */ |
| 115 | 115 | public function wrapCallback(OutputInterface $output, Process $process, callable $callback = null) |
| 116 | 116 | { |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | * @param OutputInterface $output |
| 38 | 38 | * @param string|null $format Indicator format |
| 39 | 39 | * @param int $indicatorChangeInterval Change interval in milliseconds |
| 40 | - * @param array|null $indicatorValues Animated indicator characters |
|
| 40 | + * @param string[] $indicatorValues Animated indicator characters |
|
| 41 | 41 | */ |
| 42 | 42 | public function __construct(OutputInterface $output, $format = null, $indicatorChangeInterval = 100, $indicatorValues = null) |
| 43 | 43 | { |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | /** |
| 79 | 79 | * Starts the indicator output. |
| 80 | 80 | * |
| 81 | - * @param $message |
|
| 81 | + * @param string $message |
|
| 82 | 82 | */ |
| 83 | 83 | public function start($message) |
| 84 | 84 | { |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | /** |
| 124 | 124 | * Finish the indicator with message. |
| 125 | 125 | * |
| 126 | - * @param $message |
|
| 126 | + * @param string $message |
|
| 127 | 127 | */ |
| 128 | 128 | public function finish($message) |
| 129 | 129 | { |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | * Sets table column style. |
| 151 | 151 | * |
| 152 | 152 | * @param int $columnIndex Column index |
| 153 | - * @param TableStyle|string $name The style name or a TableStyle instance |
|
| 153 | + * @param TableStyle $name The style name or a TableStyle instance |
|
| 154 | 154 | * |
| 155 | 155 | * @return $this |
| 156 | 156 | */ |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | /** |
| 200 | 200 | * Sets the minimum width of all columns. |
| 201 | 201 | * |
| 202 | - * @param array $widths |
|
| 202 | + * @param integer[] $widths |
|
| 203 | 203 | * |
| 204 | 204 | * @return $this |
| 205 | 205 | */ |