From abb53e9fee242db597e378e0777653a819da16ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20H=C3=A4drich?= <11225821+shaedrich@users.noreply.github.com> Date: Fri, 1 Nov 2024 00:05:59 +0100 Subject: [PATCH] =?UTF-8?q?style:=20=F0=9F=8E=A8=20Fix=20StyleCI=20errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit – Remove unused imports – Spacing improves: #53341 --- src/Illuminate/Support/Str.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/Illuminate/Support/Str.php b/src/Illuminate/Support/Str.php index 185e0c63814..54a68f168a7 100644 --- a/src/Illuminate/Support/Str.php +++ b/src/Illuminate/Support/Str.php @@ -14,15 +14,7 @@ use Ramsey\Uuid\Generator\CombGenerator; use Ramsey\Uuid\Uuid; use Ramsey\Uuid\UuidFactory; -use Symfony\Component\Uid\NilUuid; use Symfony\Component\Uid\Ulid; -use Symfony\Component\Uid\UuidV1; -use Symfony\Component\Uid\UuidV3; -use Symfony\Component\Uid\UuidV4; -use Symfony\Component\Uid\UuidV5; -use Symfony\Component\Uid\UuidV6; -use Symfony\Component\Uid\UuidV7; -use Symfony\Component\Uid\UuidV8; use Throwable; use Traversable; use voku\helper\ASCII; @@ -617,6 +609,7 @@ public static function isUuid($value, $version = null) } $factory = new UuidFactory(); + try { $factoryUuid = $factory->fromString($value); } catch (InvalidUuidStringException $ex) { @@ -624,7 +617,7 @@ public static function isUuid($value, $version = null) } $fields = $factoryUuid->getFields(); - if (!($fields instanceof FieldsInterface)) { + if (! ($fields instanceof FieldsInterface)) { return false; }