Merge pull request #2334 from Strubbl/patch-2

Update HashidService.php
This commit is contained in:
daniel 2020-07-21 09:16:44 -06:00 committed by GitHub
commit 2e8ba94883
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@ class HashidService {
$shortcode = '';
while($id) {
$id = ($id - ($r = $id % $base)) / $base;
$shortcode = $cmap{$r} . $shortcode;
$shortcode = $cmap[$r] . $shortcode;
};
return $shortcode;
});
@ -47,4 +47,4 @@ class HashidService {
return $id;
}
}
}