chore: update package files

This commit is contained in:
Ben Ramsey
2021-08-06 14:05:57 -05:00
parent 90a87a7543
commit c005f69d6e
67 changed files with 890 additions and 615 deletions
@@ -7,7 +7,7 @@
* file that was distributed with this source code.
*
* @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>
* @license http://opensource.org/licenses/MIT MIT
* @license http://opensource.org/licenses/MIT MIT
*/
declare(strict_types=1);
@@ -21,8 +21,8 @@ use function array_map;
final class UuidStringConversionBench
{
private const TINY_UUID = '00000000-0000-0000-0000-000000000001';
private const HUGE_UUID = 'ffffffff-ffff-ffff-ffff-ffffffffffff';
private const TINY_UUID = '00000000-0000-0000-0000-000000000001';
private const HUGE_UUID = 'ffffffff-ffff-ffff-ffff-ffffffffffff';
private const UUIDS_TO_BE_SHORTENED = [
'0ae0cac5-2a40-465c-99ed-3d331b7cf72a',
'5759b9ce-07b5-4e89-b33a-f864317a2951',
@@ -159,13 +159,13 @@ final class UuidStringConversionBench
public function __construct()
{
$this->tinyUuid = Uuid::fromString(self::TINY_UUID);
$this->hugeUuid = Uuid::fromString(self::HUGE_UUID);
$this->uuid = Uuid::fromString(self::UUIDS_TO_BE_SHORTENED[0]);
$this->tinyUuid = Uuid::fromString(self::TINY_UUID);
$this->hugeUuid = Uuid::fromString(self::HUGE_UUID);
$this->uuid = Uuid::fromString(self::UUIDS_TO_BE_SHORTENED[0]);
$this->promiscuousUuids = array_map([Uuid::class, 'fromString'], self::UUIDS_TO_BE_SHORTENED);
$this->tinyUuidBytes = $this->tinyUuid->getBytes();
$this->hugeUuidBytes = $this->hugeUuid->getBytes();
$this->uuidBytes = $this->uuid->getBytes();
$this->tinyUuidBytes = $this->tinyUuid->getBytes();
$this->hugeUuidBytes = $this->hugeUuid->getBytes();
$this->uuidBytes = $this->uuid->getBytes();
$this->promiscuousUuidsBytes = array_map(static function (UuidInterface $uuid): string {
return $uuid->getBytes();
}, $this->promiscuousUuids);