Skip to content

Commit

Permalink
style: 🎨 Fix StyleCI errors
Browse files Browse the repository at this point in the history
– Remove unused imports
– Spacing

improves: laravel#53341
  • Loading branch information
shaedrich authored Oct 31, 2024
1 parent 2c94539 commit abb53e9
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/Illuminate/Support/Str.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -617,14 +609,15 @@ public static function isUuid($value, $version = null)
}

$factory = new UuidFactory();

try {
$factoryUuid = $factory->fromString($value);
} catch (InvalidUuidStringException $ex) {
return false;
}
$fields = $factoryUuid->getFields();

if (!($fields instanceof FieldsInterface)) {
if (! ($fields instanceof FieldsInterface)) {
return false;
}

Expand Down

0 comments on commit abb53e9

Please sign in to comment.