@@ -57,7 +57,7 @@ |
||
57 | 57 | * |
58 | 58 | * @param string|null $foreground The style foreground color name |
59 | 59 | * @param string|null $background The style background color name |
60 | - * @param array $options The style options |
|
60 | + * @param string[] $options The style options |
|
61 | 61 | * |
62 | 62 | * @api |
63 | 63 | */ |
@@ -32,14 +32,14 @@ discard block |
||
32 | 32 | * Asks the user to select a value. |
33 | 33 | * |
34 | 34 | * @param OutputInterface $output An Output instance |
35 | - * @param string|array $question The question to ask |
|
36 | - * @param array $choices List of choices to pick from |
|
35 | + * @param string $question The question to ask |
|
36 | + * @param string[] $choices List of choices to pick from |
|
37 | 37 | * @param bool|string $default The default answer if the user enters nothing |
38 | 38 | * @param bool|int $attempts Max number of times to ask before giving up (false by default, which means infinite) |
39 | 39 | * @param string $errorMessage Message which will be shown if invalid value from choice list would be picked |
40 | 40 | * @param bool $multiselect Select more than one value separated by comma |
41 | 41 | * |
42 | - * @return int|string|array The selected value or values (the key of the choices array) |
|
42 | + * @return string The selected value or values (the key of the choices array) |
|
43 | 43 | * |
44 | 44 | * @throws \InvalidArgumentException |
45 | 45 | */ |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | * The question will be asked until the user answers by nothing, yes, or no. |
231 | 231 | * |
232 | 232 | * @param OutputInterface $output An Output instance |
233 | - * @param string|array $question The question to ask |
|
233 | + * @param string $question The question to ask |
|
234 | 234 | * @param bool $default The default answer if the user enters nothing |
235 | 235 | * |
236 | 236 | * @return bool true if the user has confirmed, false otherwise |
@@ -327,13 +327,13 @@ discard block |
||
327 | 327 | * otherwise. |
328 | 328 | * |
329 | 329 | * @param OutputInterface $output An Output instance |
330 | - * @param string|array $question The question to ask |
|
330 | + * @param string $question The question to ask |
|
331 | 331 | * @param callable $validator A PHP callback |
332 | 332 | * @param int|false $attempts Max number of times to ask before giving up (false by default, which means infinite) |
333 | 333 | * @param string $default The default answer if none is given by the user |
334 | 334 | * @param array $autocomplete List of values to autocomplete |
335 | 335 | * |
336 | - * @return mixed |
|
336 | + * @return string |
|
337 | 337 | * |
338 | 338 | * @throws \Exception When any of the validators return an error |
339 | 339 | */ |
@@ -392,7 +392,7 @@ discard block |
||
392 | 392 | /** |
393 | 393 | * Returns the helper's input stream. |
394 | 394 | * |
395 | - * @return string |
|
395 | + * @return resource |
|
396 | 396 | */ |
397 | 397 | public function getInputStream() |
398 | 398 | { |
@@ -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 | { |
@@ -138,6 +138,9 @@ discard block |
||
138 | 138 | return isset(self::$formats[$name]) ? self::$formats[$name] : null; |
139 | 139 | } |
140 | 140 | |
141 | + /** |
|
142 | + * @param string $message |
|
143 | + */ |
|
141 | 144 | public function setMessage($message, $name = 'message') |
142 | 145 | { |
143 | 146 | $this->messages[$name] = $message; |
@@ -473,6 +476,7 @@ discard block |
||
473 | 476 | * Sets the progress bar maximal steps. |
474 | 477 | * |
475 | 478 | * @param int The progress bar max steps |
479 | + * @param integer $max |
|
476 | 480 | */ |
477 | 481 | private function setMaxSteps($max) |
478 | 482 | { |
@@ -49,6 +49,9 @@ |
||
49 | 49 | require_once self::$fixturesPath.'/FooSubnamespaced2Command.php'; |
50 | 50 | } |
51 | 51 | |
52 | + /** |
|
53 | + * @param string $text |
|
54 | + */ |
|
52 | 55 | protected function normalizeLineBreaks($text) |
53 | 56 | { |
54 | 57 | return str_replace(PHP_EOL, "\n", $text); |
@@ -177,6 +177,9 @@ |
||
177 | 177 | $this->assertEquals('not yet', $dialog->ask($this->getOutputStream(), 'Do you have a job?', 'not yet')); |
178 | 178 | } |
179 | 179 | |
180 | + /** |
|
181 | + * @param string $input |
|
182 | + */ |
|
180 | 183 | protected function getInputStream($input) |
181 | 184 | { |
182 | 185 | $stream = fopen('php://memory', 'r+', false); |
@@ -589,6 +589,9 @@ |
||
589 | 589 | return new StreamOutput(fopen('php://memory', 'r+', false), $verbosity, $decorated); |
590 | 590 | } |
591 | 591 | |
592 | + /** |
|
593 | + * @param string $expected |
|
594 | + */ |
|
592 | 595 | protected function generateOutput($expected) |
593 | 596 | { |
594 | 597 | $count = substr_count($expected, "\n"); |
@@ -589,6 +589,9 @@ |
||
589 | 589 | return new StreamOutput(fopen('php://memory', 'r+', false), $verbosity, $decorated); |
590 | 590 | } |
591 | 591 | |
592 | + /** |
|
593 | + * @param string $expected |
|
594 | + */ |
|
592 | 595 | protected function generateOutput($expected) |
593 | 596 | { |
594 | 597 | $count = substr_count($expected, "\n"); |
@@ -51,6 +51,10 @@ discard block |
||
51 | 51 | /* public function __destruct() { |
52 | 52 | session_regenerate_id(true); |
53 | 53 | }*/ |
54 | + |
|
55 | + /** |
|
56 | + * @param string $session_name |
|
57 | + */ |
|
54 | 58 | function iniciarSesion($session_name, $secure) { |
55 | 59 | // Make sure the session cookie is not accessable via javascript. |
56 | 60 | $httpunico = true; |
@@ -136,6 +140,9 @@ discard block |
||
136 | 140 | return true; |
137 | 141 | } |
138 | 142 | |
143 | + /** |
|
144 | + * @param string $id |
|
145 | + */ |
|
139 | 146 | function destruir($id) { |
140 | 147 | if(!isset($this->delete_stmt)) { |
141 | 148 | $this->delete_stmt = $this->db->prepare("DELETE FROM sesiones WHERE id = ?"); |