@@ -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) { |
@@ -293,8 +293,9 @@ |
||
293 | 293 | */ |
294 | 294 | public static function map256To8(int $colourCode) : string |
295 | 295 | { |
296 | - if (!isset(static::$coloursMap[$colourCode])) |
|
297 | - throw new new \InvalidArgumentException("Invalid colour code"); |
|
296 | + if (!isset(static::$coloursMap[$colourCode])) { |
|
297 | + throw new new \InvalidArgumentException("Invalid colour code"); |
|
298 | + } |
|
298 | 299 | |
299 | 300 | return static::$coloursMap[$colourCode]; |
300 | 301 | } |