@@ -87,6 +87,9 @@ discard block |
||
| 87 | 87 | */ |
| 88 | 88 | private $currentFrame; |
| 89 | 89 | |
| 90 | + /** |
|
| 91 | + * @param string $title |
|
| 92 | + */ |
|
| 90 | 93 | public function __construct( |
| 91 | 94 | ?string $title, |
| 92 | 95 | array $items, |
@@ -498,6 +501,9 @@ discard block |
||
| 498 | 501 | return new Password(new InputIO($this, $this->terminal), $style); |
| 499 | 502 | } |
| 500 | 503 | |
| 504 | + /** |
|
| 505 | + * @param string $text |
|
| 506 | + */ |
|
| 501 | 507 | private function guardSingleLine($text) |
| 502 | 508 | { |
| 503 | 509 | if (strpos($text, "\n") !== false) { |
@@ -294,8 +294,9 @@ |
||
| 294 | 294 | */ |
| 295 | 295 | public static function map256To8(int $colourCode) : string |
| 296 | 296 | { |
| 297 | - if (!isset(static::$coloursMap[$colourCode])) |
|
| 298 | - throw new \InvalidArgumentException("Invalid colour code"); |
|
| 297 | + if (!isset(static::$coloursMap[$colourCode])) { |
|
| 298 | + throw new \InvalidArgumentException("Invalid colour code"); |
|
| 299 | + } |
|
| 299 | 300 | |
| 300 | 301 | return static::$coloursMap[$colourCode]; |
| 301 | 302 | } |