aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/ramsey/uuid/src/Converter
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-11-05 08:46:42 +0000
committerMario <mario@mariovavti.com>2020-11-05 08:46:42 +0000
commitbafbf0416462c6f18c3fb6c8c06a063c8d6fdae6 (patch)
tree8929845be585b09d0f420621281c5531e1efad3e /vendor/ramsey/uuid/src/Converter
parent6f93d9848c43019d43ea76c27d42d657ba031cd7 (diff)
parentfdefa101d84dc2a9424eaedbdb003a4c30ec5d01 (diff)
downloadvolse-hubzilla-5.0.tar.gz
volse-hubzilla-5.0.tar.bz2
volse-hubzilla-5.0.zip
Merge branch '5.0RC'5.0
Diffstat (limited to 'vendor/ramsey/uuid/src/Converter')
-rw-r--r--vendor/ramsey/uuid/src/Converter/NumberConverterInterface.php6
-rw-r--r--vendor/ramsey/uuid/src/Converter/Time/BigNumberTimeConverter.php7
-rw-r--r--vendor/ramsey/uuid/src/Converter/Time/PhpTimeConverter.php4
-rw-r--r--vendor/ramsey/uuid/src/Converter/TimeConverterInterface.php6
4 files changed, 14 insertions, 9 deletions
diff --git a/vendor/ramsey/uuid/src/Converter/NumberConverterInterface.php b/vendor/ramsey/uuid/src/Converter/NumberConverterInterface.php
index 9505e8c6d..b978e2e7b 100644
--- a/vendor/ramsey/uuid/src/Converter/NumberConverterInterface.php
+++ b/vendor/ramsey/uuid/src/Converter/NumberConverterInterface.php
@@ -14,6 +14,8 @@
namespace Ramsey\Uuid\Converter;
+use Ramsey\Uuid\Exception\UnsatisfiedDependencyException;
+
/**
* NumberConverterInterface converts UUIDs from hexadecimal characters into
* representations of integers and vice versa
@@ -28,7 +30,7 @@ interface NumberConverterInterface
*
* @param string $hex The hexadecimal string representation to convert
* @return mixed
- * @throws \Ramsey\Uuid\Exception\UnsatisfiedDependencyException if `Moontoast\Math\BigNumber` is not present
+ * @throws UnsatisfiedDependencyException if `Moontoast\Math\BigNumber` is not present
*/
public function fromHex($hex);
@@ -40,7 +42,7 @@ interface NumberConverterInterface
* a true integer, a string integer, or a object representation that
* this converter can understand
* @return string Hexadecimal string
- * @throws \Ramsey\Uuid\Exception\UnsatisfiedDependencyException if `Moontoast\Math\BigNumber` is not present
+ * @throws UnsatisfiedDependencyException if `Moontoast\Math\BigNumber` is not present
*/
public function toHex($integer);
}
diff --git a/vendor/ramsey/uuid/src/Converter/Time/BigNumberTimeConverter.php b/vendor/ramsey/uuid/src/Converter/Time/BigNumberTimeConverter.php
index d47c80191..112f72272 100644
--- a/vendor/ramsey/uuid/src/Converter/Time/BigNumberTimeConverter.php
+++ b/vendor/ramsey/uuid/src/Converter/Time/BigNumberTimeConverter.php
@@ -43,16 +43,17 @@ class BigNumberTimeConverter implements TimeConverterInterface
$usec = new BigNumber($microSeconds);
$usec->multiply('10');
- $uuidTime->add($sec)
+ $uuidTime
+ ->add($sec)
->add($usec)
->add('122192928000000000');
$uuidTimeHex = sprintf('%016s', $uuidTime->convertToBase(16));
- return array(
+ return [
'low' => substr($uuidTimeHex, 8),
'mid' => substr($uuidTimeHex, 4, 4),
'hi' => substr($uuidTimeHex, 0, 4),
- );
+ ];
}
}
diff --git a/vendor/ramsey/uuid/src/Converter/Time/PhpTimeConverter.php b/vendor/ramsey/uuid/src/Converter/Time/PhpTimeConverter.php
index 6a9da74b8..57c882dbb 100644
--- a/vendor/ramsey/uuid/src/Converter/Time/PhpTimeConverter.php
+++ b/vendor/ramsey/uuid/src/Converter/Time/PhpTimeConverter.php
@@ -38,10 +38,10 @@ class PhpTimeConverter implements TimeConverterInterface
// UUID epoch 1582-10-15 00:00:00 and the Unix epoch 1970-01-01 00:00:00.
$uuidTime = ($seconds * 10000000) + ($microSeconds * 10) + 0x01b21dd213814000;
- return array(
+ return [
'low' => sprintf('%08x', $uuidTime & 0xffffffff),
'mid' => sprintf('%04x', ($uuidTime >> 32) & 0xffff),
'hi' => sprintf('%04x', ($uuidTime >> 48) & 0x0fff),
- );
+ ];
}
}
diff --git a/vendor/ramsey/uuid/src/Converter/TimeConverterInterface.php b/vendor/ramsey/uuid/src/Converter/TimeConverterInterface.php
index 382008ac3..23cf1640b 100644
--- a/vendor/ramsey/uuid/src/Converter/TimeConverterInterface.php
+++ b/vendor/ramsey/uuid/src/Converter/TimeConverterInterface.php
@@ -14,6 +14,8 @@
namespace Ramsey\Uuid\Converter;
+use Ramsey\Uuid\Exception\UnsatisfiedDependencyException;
+
/**
* TimeConverterInterface provides facilities for converting parts of time into
* representations that may be used in UUIDs
@@ -26,8 +28,8 @@ interface TimeConverterInterface
*
* @param string $seconds
* @param string $microSeconds
- * @return string[] An array guaranteed to contain `low`, `mid`, and `high` keys
- * @throws \Ramsey\Uuid\Exception\UnsatisfiedDependencyException if called on a 32-bit system and
+ * @return string[] An array guaranteed to contain `low`, `mid`, and `hi` keys
+ * @throws UnsatisfiedDependencyException if called on a 32-bit system and
* `Moontoast\Math\BigNumber` is not present
* @link http://tools.ietf.org/html/rfc4122#section-4.2.2
*/