@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace UMA\Uuid; |
6 | 6 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | public static function fromBytes(string $bytes): Uuid |
84 | 84 | { |
85 | 85 | if (16 !== strlen($bytes)) { |
86 | - throw new \InvalidArgumentException('Length of $bytes for new Uuid is not 16. Got: 0x' . bin2hex($bytes)); |
|
86 | + throw new \InvalidArgumentException('Length of $bytes for new Uuid is not 16. Got: 0x'.bin2hex($bytes)); |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | return new self($bytes, self::bin2str($bytes)); |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | public static function fromString(string $text): Uuid |
101 | 101 | { |
102 | 102 | if (false === self::isUuid($text)) { |
103 | - throw new \InvalidArgumentException('$text is not a valid Uuid. Got: ' . $text); |
|
103 | + throw new \InvalidArgumentException('$text is not a valid Uuid. Got: '.$text); |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | return new self(self::str2bin($text), $text); |