@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | } |
376 | 376 | |
377 | 377 | /** |
378 | - * @return array |
|
378 | + * @return SelectableItem[] |
|
379 | 379 | */ |
380 | 380 | private function getDefaultItems() |
381 | 381 | { |
@@ -463,7 +463,7 @@ discard block |
||
463 | 463 | |
464 | 464 | /** |
465 | 465 | * @param string $id |
466 | - * @return CliMenu |
|
466 | + * @return CliMenuBuilder |
|
467 | 467 | * @throws RuntimeException |
468 | 468 | */ |
469 | 469 | public function getSubMenu($id) |
@@ -376,8 +376,8 @@ |
||
376 | 376 | /** |
377 | 377 | * Get padding for right had side of content |
378 | 378 | * |
379 | - * @param $contentLength |
|
380 | - * @return int |
|
379 | + * @param integer $contentLength |
|
380 | + * @return double |
|
381 | 381 | */ |
382 | 382 | public function getRightHandPadding($contentLength) |
383 | 383 | { |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | /** |
209 | 209 | * Move the selection in a given direction, up / down |
210 | 210 | * |
211 | - * @param $direction |
|
211 | + * @param string $direction |
|
212 | 212 | */ |
213 | 213 | protected function moveSelection($direction) |
214 | 214 | { |
@@ -462,6 +462,9 @@ discard block |
||
462 | 462 | return new Password(new InputIO($this, $style, $this->terminal)); |
463 | 463 | } |
464 | 464 | |
465 | + /** |
|
466 | + * @param string $text |
|
467 | + */ |
|
465 | 468 | private function guardSingleLine($text) |
466 | 469 | { |
467 | 470 | if (strpos($text, "\n") !== false) { |