Skip to content

Commit 8112bdc

Browse files
author
Gennadi Janzen
committed
cleanup
1 parent d8cbb56 commit 8112bdc

File tree

5 files changed

+5
-12
lines changed

5 files changed

+5
-12
lines changed

src/Symfony/Bridge/Doctrine/Id/UuidV1Generator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313

1414
use Doctrine\ORM\EntityManager;
1515
use Doctrine\ORM\Id\AbstractIdGenerator;
16-
use Symfony\Component\Uid\UuidV6;
16+
use Symfony\Component\Uid\UuidV1;
1717

1818
final class UuidV1Generator extends AbstractIdGenerator
1919
{
20-
public function generate(EntityManager $em, $entity): UuidV6
20+
public function generate(EntityManager $em, $entity): UuidV1
2121
{
22-
return new UuidV6();
22+
return new UuidV1();
2323
}
2424
}

src/Symfony/Bridge/Doctrine/Types/AbstractBinaryUidType.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use Doctrine\DBAL\Types\ConversionException;
1616
use Doctrine\DBAL\Types\GuidType;
1717
use Symfony\Component\Uid\AbstractUid;
18-
use Symfony\Component\Uid\Uuid;
1918

2019
abstract class AbstractBinaryUidType extends GuidType
2120
{

src/Symfony/Bridge/Doctrine/Types/AbstractUidType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform): ?str
5757

5858
if (
5959
(\is_string($value) || method_exists($value, '__toString'))
60-
&& $this->getUidObject()::isValid((string)$value)
60+
&& $this->getUidObject()::isValid((string) $value)
6161
) {
62-
return (string)$value;
62+
return (string) $value;
6363
}
6464

6565
throw ConversionException::conversionFailed($value, $this->getName());

src/Symfony/Bridge/Doctrine/Types/UlidBinaryType.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@
1111

1212
namespace Symfony\Bridge\Doctrine\Types;
1313

14-
use Doctrine\DBAL\Platforms\AbstractPlatform;
15-
use Doctrine\DBAL\Types\ConversionException;
1614
use Symfony\Component\Uid\AbstractUid;
1715
use Symfony\Component\Uid\Ulid;
18-
use Symfony\Component\Uid\Uuid;
1916

2017
final class UlidBinaryType extends AbstractBinaryUidType
2118
{
@@ -24,7 +21,6 @@ public function getName(): string
2421
return 'ulid_binary';
2522
}
2623

27-
2824
protected function getUidObject(): AbstractUid
2925
{
3026
return new Ulid();

src/Symfony/Bridge/Doctrine/Types/UuidBinaryType.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Symfony\Bridge\Doctrine\Types;
1313

14-
use Doctrine\DBAL\Platforms\AbstractPlatform;
15-
use Doctrine\DBAL\Types\ConversionException;
1614
use Symfony\Component\Uid\AbstractUid;
1715
use Symfony\Component\Uid\Uuid;
1816

0 commit comments

Comments
 (0)