From 5fdcd80f8d0801a08ebab40d935405d8999a6c24 Mon Sep 17 00:00:00 2001 From: Jason Jones <43227214+Jasonej@users.noreply.github.com> Date: Sat, 2 Sep 2023 13:03:14 -0400 Subject: [PATCH] fix code style --- src/Illuminate/Support/Str.php | 10 +++++----- tests/Support/SupportStrTest.php | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Illuminate/Support/Str.php b/src/Illuminate/Support/Str.php index ea2909036fae..f1dee5efed4f 100644 --- a/src/Illuminate/Support/Str.php +++ b/src/Illuminate/Support/Str.php @@ -1574,7 +1574,7 @@ public static function createUlidsNormally() /** * Set the callable that will be used to generate ULIDs. * - * @param callable|null $factory + * @param callable|null $factory * @return void */ public static function createUlidsUsing(callable $factory = null) @@ -1585,8 +1585,8 @@ public static function createUlidsUsing(callable $factory = null) /** * Set the sequence that will be used to generate ULIDs. * - * @param array $sequence - * @param callable|null $whenMissing + * @param array $sequence + * @param callable|null $whenMissing * @return void */ public static function createUlidsUsingSequence(array $sequence, $whenMissing = null) @@ -1619,14 +1619,14 @@ public static function createUlidsUsingSequence(array $sequence, $whenMissing = /** * Always return the same ULID when generating new ULIDs. * - * @param Closure|null $callback + * @param Closure|null $callback * @return Ulid */ public static function freezeUlids(Closure $callback = null) { $ulid = Str::ulid(); - Str::createUlidsUsing(fn() => $ulid); + Str::createUlidsUsing(fn () => $ulid); if ($callback !== null) { try { diff --git a/tests/Support/SupportStrTest.php b/tests/Support/SupportStrTest.php index da612dddc7d6..8a2e7979f70c 100755 --- a/tests/Support/SupportStrTest.php +++ b/tests/Support/SupportStrTest.php @@ -1200,7 +1200,7 @@ public function testItCreatesUlidsNormallyAfterFailureWithinFreezeMethod() { try { Str::freezeUlids(function () { - Str::createUlidsUsing(fn() => Str::of('1234')); + Str::createUlidsUsing(fn () => Str::of('1234')); $this->assertSame('1234', (string) Str::ulid()); throw new \Exception('Something failed'); }); @@ -1246,7 +1246,7 @@ public function testItCanSpecifyAFallbackForAUlidSequence() { Str::createUlidsUsingSequence( [Str::ulid(), Str::ulid()], - fn() => throw new Exception('Out of Ulids'), + fn () => throw new Exception('Out of Ulids'), ); Str::ulid(); Str::ulid();