From 56b6ca42d822682a791a948a635585b25c690cf5 Mon Sep 17 00:00:00 2001 From: taylorotwell Date: Wed, 11 Sep 2024 20:39:03 +0000 Subject: [PATCH] Fix code styling --- src/Concerns/FakesInputOutput.php | 4 ++-- src/Prompt.php | 2 +- src/Support/Result.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Concerns/FakesInputOutput.php b/src/Concerns/FakesInputOutput.php index ebee895..2f4dd74 100644 --- a/src/Concerns/FakesInputOutput.php +++ b/src/Concerns/FakesInputOutput.php @@ -40,10 +40,10 @@ public static function fake(array $keys = []): void /** * Implementation of the looping mechanism for simulating key presses. - * + * * By ignoring the `$callable` parameter which contains the default logic * for simulating fake key presses, we can use a custom implementation - * to emit key presses instead, allowing us to use different inputs. + * to emit key presses instead, allowing us to use different inputs. * * @param array $keys * @param callable(string $key): void $callable diff --git a/src/Prompt.php b/src/Prompt.php index 11a7960..3168f2e 100644 --- a/src/Prompt.php +++ b/src/Prompt.php @@ -166,7 +166,7 @@ public function prompt(): mixed */ public function runLoop(callable $callable): mixed { - while(($key = static::terminal()->read()) !== null) { + while (($key = static::terminal()->read()) !== null) { $result = $callable($key); if ($result instanceof Result) { diff --git a/src/Support/Result.php b/src/Support/Result.php index c08273b..42a30be 100644 --- a/src/Support/Result.php +++ b/src/Support/Result.php @@ -4,7 +4,7 @@ /** * Result. - * + * * This is a 'sentinel' value. It wraps a return value, which can * allow us to differentiate between a `null` return value and * a `null` return value that's intended to continue a loop.