mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-15 16:07:55 +03:00
Update coding style to include PSR-12, among other options
This also includes heavy use of slevomat/coding-standard to apply various checks to the code, based on maintainer (me) preference.
This commit is contained in:
@@ -38,7 +38,7 @@ class FallbackNodeProvider implements NodeProviderInterface
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getNode(): ?string
|
||||
public function getNode()
|
||||
{
|
||||
foreach ($this->nodeProviders as $provider) {
|
||||
if ($node = $provider->getNode()) {
|
||||
|
||||
@@ -27,7 +27,7 @@ class RandomNodeProvider implements NodeProviderInterface
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getNode(): string
|
||||
public function getNode()
|
||||
{
|
||||
try {
|
||||
$nodeBytes = random_bytes(6);
|
||||
|
||||
@@ -569,9 +569,6 @@ class Uuid implements UuidInterface
|
||||
return (int) hexdec($this->getTimestampHex());
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function getTimestampHex(): string
|
||||
{
|
||||
if ($this->getVersion() !== 1) {
|
||||
|
||||
Reference in New Issue
Block a user