Completed
Pull Request — master (#104)
by
unknown
02:18
created
src/CliMenu.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -87,6 +87,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Util/ColourUtil.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -293,8 +293,9 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.