Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
cbschuld committed Apr 11, 2020
1 parent 7e7b60f commit 5f250ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/UuidBase58.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ public static function decode($info) {
$bitcoin = new Base58Encoder();
$decodeInput = (string)bin2hex($bitcoin->decode($info));
return preg_replace(
"/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/i", "$1-$2-$3-$4-$5", $decodeInput);
"/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/i",
"$1-$2-$3-$4-$5",
$decodeInput
);
}
public static function id() {
return self::encode(Uuid::uuid4());
Expand Down

0 comments on commit 5f250ae

Please sign in to comment.