@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | use UMA\Uuid\Uuid; |
| 6 | 6 | use UMA\Uuid\CombGenerator; |
@@ -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 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | private function __construct(string $text) |
| 37 | 37 | { |
| 38 | 38 | if (false === self::isUuid($text)) { |
| 39 | - throw new \InvalidArgumentException('$text is not a valid Uuid. Got: ' . $text); |
|
| 39 | + throw new \InvalidArgumentException('$text is not a valid Uuid. Got: '.$text); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | $this->uuid = \strtolower($text); |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | public static function fromBytes(string $bytes): Uuid |
| 67 | 67 | { |
| 68 | 68 | if (16 !== \strlen($bytes)) { |
| 69 | - throw new \InvalidArgumentException('Length of $bytes for new Uuid is not 16. Got: 0x' . \bin2hex($bytes)); |
|
| 69 | + throw new \InvalidArgumentException('Length of $bytes for new Uuid is not 16. Got: 0x'.\bin2hex($bytes)); |
|
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | return new self(self::bin2str($bytes)); |