mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-14 15:56:48 +03:00
Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
This commit is contained in:
@@ -91,7 +91,7 @@ class StringCodec implements CodecInterface
|
||||
|
||||
$nameParsed = implode('-', $components);
|
||||
|
||||
if (! Uuid::isValid($nameParsed)) {
|
||||
if (!Uuid::isValid($nameParsed)) {
|
||||
throw new InvalidArgumentException('Invalid UUID string: ' . $encodedUuid);
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -192,7 +192,7 @@ class FeatureSet
|
||||
*/
|
||||
protected function hasBigNumber()
|
||||
{
|
||||
return class_exists('Moontoast\Math\BigNumber') && ! $this->disableBigNumber;
|
||||
return class_exists('Moontoast\Math\BigNumber') && !$this->disableBigNumber;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -202,6 +202,6 @@ class FeatureSet
|
||||
*/
|
||||
protected function is64BitSystem()
|
||||
{
|
||||
return PHP_INT_SIZE == 8 && ! $this->disable64Bit;
|
||||
return PHP_INT_SIZE == 8 && !$this->disable64Bit;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ class DefaultTimeGenerator implements TimeGeneratorInterface
|
||||
$node = sprintf('%012x', $node);
|
||||
}
|
||||
|
||||
if (! ctype_xdigit($node) || strlen($node) > 12) {
|
||||
if (!ctype_xdigit($node) || strlen($node) > 12) {
|
||||
throw new \InvalidArgumentException('Invalid node value');
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ class FixedTimeProvider implements TimeProviderInterface
|
||||
|
||||
public function __construct(array $timestamp)
|
||||
{
|
||||
if (! array_key_exists('sec', $timestamp) || ! array_key_exists('usec', $timestamp)) {
|
||||
if (!array_key_exists('sec', $timestamp) || !array_key_exists('usec', $timestamp)) {
|
||||
throw new \InvalidArgumentException('Array must contain sec and usec keys.');
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -736,7 +736,7 @@ class Uuid implements UuidInterface
|
||||
*/
|
||||
public static function getFactory()
|
||||
{
|
||||
if (! self::$factory) {
|
||||
if (!self::$factory) {
|
||||
self::$factory = new UuidFactory();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user