mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-26 17:46:38 +03:00
Applied automated CS fixes according to project CS settings
This commit is contained in:
+2
-1
@@ -389,6 +389,7 @@ class Uuid implements UuidInterface
|
||||
{
|
||||
// Note: non-string equality is intentional here. If the factory is configured differently, every assumption
|
||||
// around purity is broken, and we have to internally decide everything differently.
|
||||
// phpcs:ignore SlevomatCodingStandard.Operators.DisallowEqualOperators.DisallowedNotEqualOperator
|
||||
self::$factoryReplaced = ($factory != new UuidFactory());
|
||||
|
||||
self::$factory = $factory;
|
||||
@@ -411,7 +412,7 @@ class Uuid implements UuidInterface
|
||||
$base16Uuid = bin2hex($bytes);
|
||||
|
||||
return self::fromString(
|
||||
substr($base16Uuid,0, 8)
|
||||
substr($base16Uuid, 0, 8)
|
||||
. '-'
|
||||
. substr($base16Uuid, 8, 4)
|
||||
. '-'
|
||||
|
||||
Reference in New Issue
Block a user