From 857f90d22859b9b368edbb3de06819255c531f8c Mon Sep 17 00:00:00 2001 From: "Jibon L. Costa" Date: Sat, 17 Sep 2022 18:01:30 +0600 Subject: [PATCH] bump `plugnmeet-sdk-php` --- plugnmeet/README.txt | 2 +- .../helpers/libs/plugnmeet-sdk-php/README.md | 3 +- .../libs/plugnmeet-sdk-php/composer.json | 9 +- .../libs/plugnmeet-sdk-php/composer.lock | 339 ++++++++++-------- .../BreakoutRoomFeaturesParameters.php | 4 +- .../src/Parameters/ChatFeaturesParameters.php | 1 + .../src/Parameters/CreateRoomParameters.php | 2 +- .../Parameters/DeleteRecordingParameters.php | 1 + .../DisplayExternalLinkFeaturesParameters.php | 2 +- .../src/Parameters/EndRoomParameters.php | 2 +- .../ExternalMediaPlayerFeaturesParameters.php | 5 +- .../Parameters/FetchRecordingsParameters.php | 1 + .../GenerateJoinTokenParameters.php | 3 +- .../GetActiveRoomInfoParameters.php | 2 +- .../src/Parameters/IsRoomActiveParameters.php | 2 +- .../src/Parameters/LockSettingsParameters.php | 2 +- .../RecordingDownloadTokenParameters.php | 1 + .../src/Parameters/RoomFeaturesParameters.php | 1 + .../src/Parameters/RoomMetadataParameters.php | 2 +- .../SharedNotePadFeaturesParameters.php | 4 +- .../src/Parameters/UserMetadataParameters.php | 2 +- .../WaitingRoomFeaturesParameters.php | 1 + .../WhiteboardFeaturesParameters.php | 5 +- .../libs/plugnmeet-sdk-php/src/PlugNmeet.php | 75 ++-- .../src/Responses/BaseResponse.php | 1 + .../src/Responses/ClientFilesResponses.php | 11 +- .../src/Responses/CreateRoomResponse.php | 1 + .../src/Responses/DeleteRecordingResponse.php | 2 +- .../src/Responses/EndRoomResponse.php | 3 +- .../src/Responses/FetchRecordingsResponse.php | 31 +- .../Responses/GenerateJoinTokenResponse.php | 1 + .../Responses/GetActiveRoomInfoResponse.php | 1 + .../Responses/GetActiveRoomsInfoResponse.php | 5 + .../src/Responses/IsRoomActiveResponse.php | 2 +- .../RecordingDownloadTokenResponse.php | 2 +- .../src/Utils/ActiveRoomInfo.php | 1 + .../src/Utils/ParticipantInfo.php | 1 + .../src/Utils/RecordingInfo.php | 1 - .../plugnmeet-sdk-php/vendor/autoload.php | 7 +- .../vendor/brick/math/CHANGELOG.md | 22 +- .../vendor/brick/math/SECURITY.md | 17 - .../vendor/brick/math/composer.json | 6 +- .../vendor/brick/math/src/BigDecimal.php | 8 +- .../vendor/brick/math/src/BigInteger.php | 19 +- .../vendor/brick/math/src/BigNumber.php | 4 +- .../vendor/brick/math/src/BigRational.php | 11 +- .../brick/math/src/Internal/Calculator.php | 35 +- .../Internal/Calculator/BcMathCalculator.php | 6 - .../Internal/Calculator/NativeCalculator.php | 4 +- .../vendor/composer/ClassLoader.php | 113 +++++- .../vendor/composer/InstalledVersions.php | 27 +- .../vendor/composer/autoload_classmap.php | 14 +- .../vendor/composer/autoload_files.php | 2 +- .../vendor/composer/autoload_namespaces.php | 2 +- .../vendor/composer/autoload_psr4.php | 2 +- .../vendor/composer/autoload_real.php | 50 +-- .../vendor/composer/autoload_static.php | 20 +- .../vendor/composer/installed.json | 82 ++--- .../vendor/composer/installed.php | 42 +-- .../vendor/firebase/php-jwt/README.md | 10 + .../firebase/php-jwt/src/CachedKeySet.php | 12 +- .../vendor/firebase/php-jwt/src/JWK.php | 137 ++++++- .../vendor/firebase/php-jwt/src/JWT.php | 39 +- .../vendor/ramsey/uuid/README.md | 16 +- .../vendor/ramsey/uuid/composer.json | 17 +- .../uuid/src/Builder/DegradedUuidBuilder.php | 13 +- .../uuid/src/Builder/FallbackBuilder.php | 8 +- .../ramsey/uuid/src/Codec/StringCodec.php | 8 +- .../Converter/Number/BigNumberConverter.php | 5 +- .../Number/GenericNumberConverter.php | 8 +- .../Converter/Time/BigNumberTimeConverter.php | 5 +- .../Converter/Time/GenericTimeConverter.php | 8 +- .../src/Converter/Time/PhpTimeConverter.php | 21 +- .../src/Converter/Time/UnixTimeConverter.php | 90 +++++ .../uuid/src/DeprecatedUuidInterface.php | 9 +- .../uuid/src/DeprecatedUuidMethodsTrait.php | 132 ++++--- .../vendor/ramsey/uuid/src/FeatureSet.php | 143 +++----- .../src/Fields/SerializableFieldsTrait.php | 15 +- .../uuid/src/Generator/CombGenerator.php | 20 +- .../src/Generator/DceSecurityGenerator.php | 27 +- .../src/Generator/DefaultTimeGenerator.php | 28 +- .../src/Generator/PeclUuidNameGenerator.php | 21 +- .../Generator/RandomGeneratorInterface.php | 2 +- .../uuid/src/Generator/RandomLibAdapter.php | 5 +- .../src/Generator/TimeGeneratorFactory.php | 24 +- .../uuid/src/Generator/UnixTimeGenerator.php | 52 +++ .../vendor/ramsey/uuid/src/Guid/Fields.php | 27 +- .../ramsey/uuid/src/Guid/GuidBuilder.php | 16 +- .../uuid/src/Lazy/LazyUuidFromString.php | 29 +- .../ramsey/uuid/src/Nonstandard/Fields.php | 18 +- .../uuid/src/Nonstandard/UuidBuilder.php | 16 +- .../ramsey/uuid/src/Nonstandard/UuidV6.php | 52 +-- .../Dce/SystemDceSecurityProvider.php | 39 +- .../Provider/Node/FallbackNodeProvider.php | 10 +- .../src/Provider/Node/StaticNodeProvider.php | 5 +- .../src/Provider/Node/SystemNodeProvider.php | 27 +- .../src/Provider/Time/FixedTimeProvider.php | 16 +- .../vendor/ramsey/uuid/src/Rfc4122/Fields.php | 85 ++--- .../uuid/src/Rfc4122/FieldsInterface.php | 4 +- .../ramsey/uuid/src/Rfc4122/MaxTrait.php | 41 +++ .../ramsey/uuid/src/Rfc4122/MaxUuid.php | 27 ++ .../ramsey/uuid/src/Rfc4122/TimeTrait.php | 55 +++ .../ramsey/uuid/src/Rfc4122/UuidBuilder.php | 47 +-- .../ramsey/uuid/src/Rfc4122/UuidInterface.php | 7 - .../vendor/ramsey/uuid/src/Rfc4122/UuidV1.php | 40 +-- .../vendor/ramsey/uuid/src/Rfc4122/UuidV2.php | 56 +-- .../vendor/ramsey/uuid/src/Rfc4122/UuidV6.php | 29 ++ .../vendor/ramsey/uuid/src/Rfc4122/UuidV7.php | 60 ++++ .../ramsey/uuid/src/Rfc4122/Validator.php | 5 +- .../ramsey/uuid/src/Rfc4122/VariantTrait.php | 24 +- .../ramsey/uuid/src/Rfc4122/VersionTrait.php | 27 +- .../vendor/ramsey/uuid/src/Type/Decimal.php | 32 +- .../ramsey/uuid/src/Type/Hexadecimal.php | 18 +- .../vendor/ramsey/uuid/src/Type/Integer.php | 25 +- .../vendor/ramsey/uuid/src/Type/Time.php | 37 +- .../vendor/ramsey/uuid/src/Uuid.php | 118 +++--- .../vendor/ramsey/uuid/src/UuidFactory.php | 122 ++++--- .../ramsey/uuid/src/UuidFactoryInterface.php | 114 +++--- .../vendor/ramsey/uuid/src/UuidInterface.php | 8 + .../vendor/ramsey/uuid/src/functions.php | 23 +- .../vendor/symfony/polyfill-php81/README.md | 5 +- .../symfony/polyfill-php81/composer.json | 2 +- plugnmeet/plugnmeet.php | 4 +- 123 files changed, 1818 insertions(+), 1354 deletions(-) delete mode 100644 plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/SECURITY.md create mode 100644 plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Converter/Time/UnixTimeConverter.php create mode 100644 plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/UnixTimeGenerator.php create mode 100644 plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/MaxTrait.php create mode 100644 plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/MaxUuid.php create mode 100644 plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/TimeTrait.php create mode 100644 plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/UuidV6.php create mode 100644 plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/UuidV7.php diff --git a/plugnmeet/README.txt b/plugnmeet/README.txt index bc3c3b2..4ee971a 100644 --- a/plugnmeet/README.txt +++ b/plugnmeet/README.txt @@ -4,7 +4,7 @@ Donate link: https://www.mynaparrot.com/ Tags: mynaparrot, web conference, plugnmeet Requires at least: 5.9 Tested up to: 6.1 -Stable tag: 1.0.13 +Stable tag: 1.0.14 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Requires PHP: 7.4 diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/README.md b/plugnmeet/helpers/libs/plugnmeet-sdk-php/README.md index f56d77c..64e5b87 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/README.md +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/README.md @@ -9,7 +9,7 @@ Please check `examples` directory to see some examples. ## Methods/API | Methods | Description | -| --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------ | +| --------------------------------------------------------------------------------------------------------------------------- |--------------------------------------| | [createRoom](https://mynaparrot.github.io/plugNmeet-sdk-php/classes/Mynaparrot-Plugnmeet-PlugNmeet.html#method_createRoom) | To create new room | | [getJoinToken](https://mynaparrot.github.io/plugNmeet-sdk-php/classes/Mynaparrot-Plugnmeet-PlugNmeet.html#method_getJoinToken) | Generate join token | | [isRoomActive](https://mynaparrot.github.io/plugNmeet-sdk-php/classes/Mynaparrot-Plugnmeet-PlugNmeet.html#method_isRoomActive) | To check if room is active or not | @@ -19,3 +19,4 @@ Please check `examples` directory to see some examples. | [fetchRecordings](https://mynaparrot.github.io/plugNmeet-sdk-php/classes/Mynaparrot-Plugnmeet-PlugNmeet.html#method_fetchRecordings) | Fetch recordings | | [deleteRecordings](https://mynaparrot.github.io/plugNmeet-sdk-php/classes/Mynaparrot-Plugnmeet-PlugNmeet.html#method_deleteRecordings) | Delete recording | | [getRecordingDownloadToken](https://mynaparrot.github.io/plugNmeet-sdk-php/classes/Mynaparrot-Plugnmeet-PlugNmeet.html#method_getRecordingDownloadToken) | Generate token to download recording | +| [getClientFiles](https://mynaparrot.github.io/plugNmeet-sdk-php/classes/Mynaparrot-Plugnmeet-PlugNmeet.html#method_getClientFiles) | Get client's files | diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/composer.json b/plugnmeet/helpers/libs/plugnmeet-sdk-php/composer.json index eb0c600..b52178c 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/composer.json +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/composer.json @@ -3,7 +3,7 @@ "description": "plugNmeet PHP SDK", "type": "library", "license": "MIT", - "version": "1.0.5", + "version": "1.0.6", "autoload": { "psr-4": { "Mynaparrot\\Plugnmeet\\": "src/" @@ -15,6 +15,10 @@ "email": "jibon@mynaparrot.com" } ], + "scripts": { + "phpcs": "phpcs --standard=PSR12 src", + "phpcbf": "phpcbf --standard=PSR12 src" + }, "require": { "php": "^7.4|^8.0", "ext-curl": "*", @@ -23,6 +27,7 @@ "firebase/php-jwt": "^6.0" }, "require-dev": { - "overtrue/phplint": "^3.0" + "overtrue/phplint": "^3.0", + "squizlabs/php_codesniffer": "3.*" } } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/composer.lock b/plugnmeet/helpers/libs/plugnmeet-sdk-php/composer.lock index 2a4c745..9c7ed6d 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/composer.lock +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/composer.lock @@ -4,30 +4,30 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "9f6f6ca7b5a5ce05f6d6b48cc8705fb0", + "content-hash": "753e3120b2290396e56c48fb6db4fcc2", "packages": [ { "name": "brick/math", - "version": "0.9.3", + "version": "0.10.2", "source": { "type": "git", "url": "https://github.com/brick/math.git", - "reference": "ca57d18f028f84f777b2168cd1911b0dee2343ae" + "reference": "459f2781e1a08d52ee56b0b1444086e038561e3f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/brick/math/zipball/ca57d18f028f84f777b2168cd1911b0dee2343ae", - "reference": "ca57d18f028f84f777b2168cd1911b0dee2343ae", + "url": "https://api.github.com/repos/brick/math/zipball/459f2781e1a08d52ee56b0b1444086e038561e3f", + "reference": "459f2781e1a08d52ee56b0b1444086e038561e3f", "shasum": "" }, "require": { "ext-json": "*", - "php": "^7.1 || ^8.0" + "php": "^7.4 || ^8.0" }, "require-dev": { "php-coveralls/php-coveralls": "^2.2", - "phpunit/phpunit": "^7.5.15 || ^8.5 || ^9.0", - "vimeo/psalm": "4.9.2" + "phpunit/phpunit": "^9.0", + "vimeo/psalm": "4.25.0" }, "type": "library", "autoload": { @@ -52,32 +52,28 @@ ], "support": { "issues": "https://github.com/brick/math/issues", - "source": "https://github.com/brick/math/tree/0.9.3" + "source": "https://github.com/brick/math/tree/0.10.2" }, "funding": [ { "url": "https://github.com/BenMorel", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/brick/math", - "type": "tidelift" } ], - "time": "2021-08-15T20:50:18+00:00" + "time": "2022-08-10T22:54:19+00:00" }, { "name": "firebase/php-jwt", - "version": "v6.2.0", + "version": "v6.3.0", "source": { "type": "git", "url": "https://github.com/firebase/php-jwt.git", - "reference": "d28e6df83830252650da4623c78aaaf98fb385f3" + "reference": "018dfc4e1da92ad8a1b90adc4893f476a3b41cb8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/firebase/php-jwt/zipball/d28e6df83830252650da4623c78aaaf98fb385f3", - "reference": "d28e6df83830252650da4623c78aaaf98fb385f3", + "url": "https://api.github.com/repos/firebase/php-jwt/zipball/018dfc4e1da92ad8a1b90adc4893f476a3b41cb8", + "reference": "018dfc4e1da92ad8a1b90adc4893f476a3b41cb8", "shasum": "" }, "require": { @@ -124,9 +120,9 @@ ], "support": { "issues": "https://github.com/firebase/php-jwt/issues", - "source": "https://github.com/firebase/php-jwt/tree/v6.2.0" + "source": "https://github.com/firebase/php-jwt/tree/v6.3.0" }, - "time": "2022-05-13T20:54:50+00:00" + "time": "2022-07-15T16:48:45+00:00" }, { "name": "ramsey/collection", @@ -209,20 +205,20 @@ }, { "name": "ramsey/uuid", - "version": "4.3.1", + "version": "4.5.1", "source": { "type": "git", "url": "https://github.com/ramsey/uuid.git", - "reference": "8505afd4fea63b81a85d3b7b53ac3cb8dc347c28" + "reference": "a161a26d917604dc6d3aa25100fddf2556e9f35d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ramsey/uuid/zipball/8505afd4fea63b81a85d3b7b53ac3cb8dc347c28", - "reference": "8505afd4fea63b81a85d3b7b53ac3cb8dc347c28", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/a161a26d917604dc6d3aa25100fddf2556e9f35d", + "reference": "a161a26d917604dc6d3aa25100fddf2556e9f35d", "shasum": "" }, "require": { - "brick/math": "^0.8 || ^0.9", + "brick/math": "^0.8.8 || ^0.9 || ^0.10", "ext-ctype": "*", "ext-json": "*", "php": "^8.0", @@ -238,18 +234,18 @@ "doctrine/annotations": "^1.8", "ergebnis/composer-normalize": "^2.15", "mockery/mockery": "^1.3", - "moontoast/math": "^1.1", "paragonie/random-lib": "^2", "php-mock/php-mock": "^2.2", "php-mock/php-mock-mockery": "^1.3", "php-parallel-lint/php-parallel-lint": "^1.1", "phpbench/phpbench": "^1.0", - "phpstan/extension-installer": "^1.0", - "phpstan/phpstan": "^0.12", - "phpstan/phpstan-mockery": "^0.12", - "phpstan/phpstan-phpunit": "^0.12", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-mockery": "^1.1", + "phpstan/phpstan-phpunit": "^1.1", "phpunit/phpunit": "^8.5 || ^9", - "slevomat/coding-standard": "^7.0", + "ramsey/composer-repl": "^1.4", + "slevomat/coding-standard": "^8.4", "squizlabs/php_codesniffer": "^3.5", "vimeo/psalm": "^4.9" }, @@ -287,7 +283,7 @@ ], "support": { "issues": "https://github.com/ramsey/uuid/issues", - "source": "https://github.com/ramsey/uuid/tree/4.3.1" + "source": "https://github.com/ramsey/uuid/tree/4.5.1" }, "funding": [ { @@ -299,20 +295,20 @@ "type": "tidelift" } ], - "time": "2022-03-27T21:42:02+00:00" + "time": "2022-09-16T03:22:46+00:00" }, { "name": "symfony/polyfill-php81", - "version": "v1.25.0", + "version": "v1.26.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php81.git", - "reference": "5de4ba2d41b15f9bd0e19b2ab9674135813ec98f" + "reference": "13f6d1271c663dc5ae9fb843a8f16521db7687a1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/5de4ba2d41b15f9bd0e19b2ab9674135813ec98f", - "reference": "5de4ba2d41b15f9bd0e19b2ab9674135813ec98f", + "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/13f6d1271c663dc5ae9fb843a8f16521db7687a1", + "reference": "13f6d1271c663dc5ae9fb843a8f16521db7687a1", "shasum": "" }, "require": { @@ -321,7 +317,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.26-dev" }, "thanks": { "name": "symfony/polyfill", @@ -362,7 +358,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php81/tree/v1.25.0" + "source": "https://github.com/symfony/polyfill-php81/tree/v1.26.0" }, "funding": [ { @@ -378,7 +374,7 @@ "type": "tidelift" } ], - "time": "2021-09-13T13:58:11+00:00" + "time": "2022-05-24T11:49:31+00:00" } ], "packages-dev": [ @@ -424,26 +420,26 @@ }, { "name": "overtrue/phplint", - "version": "3.0.6", + "version": "3.2.0", "source": { "type": "git", "url": "https://github.com/overtrue/phplint.git", - "reference": "b4212c2c65bf50f6c823ab8e7c13c9ead9433241" + "reference": "c3021ad8cebd802ad3f4924c45f508803e0b80e5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/overtrue/phplint/zipball/b4212c2c65bf50f6c823ab8e7c13c9ead9433241", - "reference": "b4212c2c65bf50f6c823ab8e7c13c9ead9433241", + "url": "https://api.github.com/repos/overtrue/phplint/zipball/c3021ad8cebd802ad3f4924c45f508803e0b80e5", + "reference": "c3021ad8cebd802ad3f4924c45f508803e0b80e5", "shasum": "" }, "require": { "ext-json": "*", "n98/junit-xml": "1.1.0", - "php": ">=5.5.9", - "symfony/console": "^3.2|^4.0|^5.0", - "symfony/finder": "^3.0|^4.0|^5.0", - "symfony/process": "^3.3|^4.0|^5.0", - "symfony/yaml": "^3.0|^4.0|^5.0" + "php": "^5.5.9 || ^7.0", + "symfony/console": "^3.2 || ^4.0 || ^5.0", + "symfony/finder": "^3.0 || ^4.0 || ^5.0", + "symfony/process": "^3.3 || ^4.0 || ^5.0", + "symfony/yaml": "^3.0 || ^4.0 || ^5.0" }, "require-dev": { "brainmaestro/composer-git-hooks": "^2.7", @@ -488,7 +484,7 @@ ], "support": { "issues": "https://github.com/overtrue/phplint/issues", - "source": "https://github.com/overtrue/phplint/tree/3.0.6" + "source": "https://github.com/overtrue/phplint/tree/3.2.0" }, "funding": [ { @@ -496,7 +492,7 @@ "type": "github" } ], - "time": "2021-11-30T15:45:02+00:00" + "time": "2022-07-12T07:37:04+00:00" }, { "name": "psr/container", @@ -551,18 +547,74 @@ }, "time": "2021-11-05T16:47:00+00:00" }, + { + "name": "squizlabs/php_codesniffer", + "version": "3.7.1", + "source": { + "type": "git", + "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", + "reference": "1359e176e9307e906dc3d890bcc9603ff6d90619" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/1359e176e9307e906dc3d890bcc9603ff6d90619", + "reference": "1359e176e9307e906dc3d890bcc9603ff6d90619", + "shasum": "" + }, + "require": { + "ext-simplexml": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": ">=5.4.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" + }, + "bin": [ + "bin/phpcs", + "bin/phpcbf" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Greg Sherwood", + "role": "lead" + } + ], + "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", + "homepage": "https://github.com/squizlabs/PHP_CodeSniffer", + "keywords": [ + "phpcs", + "standards" + ], + "support": { + "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues", + "source": "https://github.com/squizlabs/PHP_CodeSniffer", + "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" + }, + "time": "2022-06-18T07:21:10+00:00" + }, { "name": "symfony/console", - "version": "v5.4.8", + "version": "v5.4.12", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "ffe3aed36c4d60da2cf1b0a1cee6b8f2e5fa881b" + "reference": "c072aa8f724c3af64e2c7a96b796a4863d24dba1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/ffe3aed36c4d60da2cf1b0a1cee6b8f2e5fa881b", - "reference": "ffe3aed36c4d60da2cf1b0a1cee6b8f2e5fa881b", + "url": "https://api.github.com/repos/symfony/console/zipball/c072aa8f724c3af64e2c7a96b796a4863d24dba1", + "reference": "c072aa8f724c3af64e2c7a96b796a4863d24dba1", "shasum": "" }, "require": { @@ -632,7 +684,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v5.4.8" + "source": "https://github.com/symfony/console/tree/v5.4.12" }, "funding": [ { @@ -648,29 +700,29 @@ "type": "tidelift" } ], - "time": "2022-04-12T16:02:29+00:00" + "time": "2022-08-17T13:18:05+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v3.0.1", + "version": "v3.1.1", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "26954b3d62a6c5fd0ea8a2a00c0353a14978d05c" + "reference": "07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/26954b3d62a6c5fd0ea8a2a00c0353a14978d05c", - "reference": "26954b3d62a6c5fd0ea8a2a00c0353a14978d05c", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918", + "reference": "07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918", "shasum": "" }, "require": { - "php": ">=8.0.2" + "php": ">=8.1" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "3.1-dev" }, "thanks": { "name": "symfony/contracts", @@ -699,7 +751,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.0.1" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.1.1" }, "funding": [ { @@ -715,20 +767,20 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:55:41+00:00" + "time": "2022-02-25T11:15:52+00:00" }, { "name": "symfony/finder", - "version": "v5.4.8", + "version": "v5.4.11", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "9b630f3427f3ebe7cd346c277a1408b00249dad9" + "reference": "7872a66f57caffa2916a584db1aa7f12adc76f8c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/9b630f3427f3ebe7cd346c277a1408b00249dad9", - "reference": "9b630f3427f3ebe7cd346c277a1408b00249dad9", + "url": "https://api.github.com/repos/symfony/finder/zipball/7872a66f57caffa2916a584db1aa7f12adc76f8c", + "reference": "7872a66f57caffa2916a584db1aa7f12adc76f8c", "shasum": "" }, "require": { @@ -762,7 +814,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v5.4.8" + "source": "https://github.com/symfony/finder/tree/v5.4.11" }, "funding": [ { @@ -778,20 +830,20 @@ "type": "tidelift" } ], - "time": "2022-04-15T08:07:45+00:00" + "time": "2022-07-29T07:37:50+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.25.0", + "version": "v1.26.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "30885182c981ab175d4d034db0f6f469898070ab" + "reference": "6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/30885182c981ab175d4d034db0f6f469898070ab", - "reference": "30885182c981ab175d4d034db0f6f469898070ab", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4", + "reference": "6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4", "shasum": "" }, "require": { @@ -806,7 +858,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.26-dev" }, "thanks": { "name": "symfony/polyfill", @@ -844,7 +896,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.25.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.26.0" }, "funding": [ { @@ -860,20 +912,20 @@ "type": "tidelift" } ], - "time": "2021-10-20T20:35:02+00:00" + "time": "2022-05-24T11:49:31+00:00" }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.25.0", + "version": "v1.26.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "81b86b50cf841a64252b439e738e97f4a34e2783" + "reference": "433d05519ce6990bf3530fba6957499d327395c2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/81b86b50cf841a64252b439e738e97f4a34e2783", - "reference": "81b86b50cf841a64252b439e738e97f4a34e2783", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/433d05519ce6990bf3530fba6957499d327395c2", + "reference": "433d05519ce6990bf3530fba6957499d327395c2", "shasum": "" }, "require": { @@ -885,7 +937,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.26-dev" }, "thanks": { "name": "symfony/polyfill", @@ -925,7 +977,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.25.0" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.26.0" }, "funding": [ { @@ -941,20 +993,20 @@ "type": "tidelift" } ], - "time": "2021-11-23T21:10:46+00:00" + "time": "2022-05-24T11:49:31+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.25.0", + "version": "v1.26.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "8590a5f561694770bdcd3f9b5c69dde6945028e8" + "reference": "219aa369ceff116e673852dce47c3a41794c14bd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/8590a5f561694770bdcd3f9b5c69dde6945028e8", - "reference": "8590a5f561694770bdcd3f9b5c69dde6945028e8", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/219aa369ceff116e673852dce47c3a41794c14bd", + "reference": "219aa369ceff116e673852dce47c3a41794c14bd", "shasum": "" }, "require": { @@ -966,7 +1018,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.26-dev" }, "thanks": { "name": "symfony/polyfill", @@ -1009,7 +1061,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.25.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.26.0" }, "funding": [ { @@ -1025,20 +1077,20 @@ "type": "tidelift" } ], - "time": "2021-02-19T12:13:01+00:00" + "time": "2022-05-24T11:49:31+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.25.0", + "version": "v1.26.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "0abb51d2f102e00a4eefcf46ba7fec406d245825" + "reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/0abb51d2f102e00a4eefcf46ba7fec406d245825", - "reference": "0abb51d2f102e00a4eefcf46ba7fec406d245825", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e", + "reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e", "shasum": "" }, "require": { @@ -1053,7 +1105,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.26-dev" }, "thanks": { "name": "symfony/polyfill", @@ -1092,7 +1144,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.25.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.26.0" }, "funding": [ { @@ -1108,20 +1160,20 @@ "type": "tidelift" } ], - "time": "2021-11-30T18:21:41+00:00" + "time": "2022-05-24T11:49:31+00:00" }, { "name": "symfony/polyfill-php73", - "version": "v1.25.0", + "version": "v1.26.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php73.git", - "reference": "cc5db0e22b3cb4111010e48785a97f670b350ca5" + "reference": "e440d35fa0286f77fb45b79a03fedbeda9307e85" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/cc5db0e22b3cb4111010e48785a97f670b350ca5", - "reference": "cc5db0e22b3cb4111010e48785a97f670b350ca5", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/e440d35fa0286f77fb45b79a03fedbeda9307e85", + "reference": "e440d35fa0286f77fb45b79a03fedbeda9307e85", "shasum": "" }, "require": { @@ -1130,7 +1182,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.26-dev" }, "thanks": { "name": "symfony/polyfill", @@ -1171,7 +1223,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php73/tree/v1.25.0" + "source": "https://github.com/symfony/polyfill-php73/tree/v1.26.0" }, "funding": [ { @@ -1187,20 +1239,20 @@ "type": "tidelift" } ], - "time": "2021-06-05T21:20:04+00:00" + "time": "2022-05-24T11:49:31+00:00" }, { "name": "symfony/polyfill-php80", - "version": "v1.25.0", + "version": "v1.26.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "4407588e0d3f1f52efb65fbe92babe41f37fe50c" + "reference": "cfa0ae98841b9e461207c13ab093d76b0fa7bace" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/4407588e0d3f1f52efb65fbe92babe41f37fe50c", - "reference": "4407588e0d3f1f52efb65fbe92babe41f37fe50c", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/cfa0ae98841b9e461207c13ab093d76b0fa7bace", + "reference": "cfa0ae98841b9e461207c13ab093d76b0fa7bace", "shasum": "" }, "require": { @@ -1209,7 +1261,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.26-dev" }, "thanks": { "name": "symfony/polyfill", @@ -1254,7 +1306,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.25.0" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.26.0" }, "funding": [ { @@ -1270,20 +1322,20 @@ "type": "tidelift" } ], - "time": "2022-03-04T08:16:47+00:00" + "time": "2022-05-10T07:21:04+00:00" }, { "name": "symfony/process", - "version": "v5.4.8", + "version": "v5.4.11", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "597f3fff8e3e91836bb0bd38f5718b56ddbde2f3" + "reference": "6e75fe6874cbc7e4773d049616ab450eff537bf1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/597f3fff8e3e91836bb0bd38f5718b56ddbde2f3", - "reference": "597f3fff8e3e91836bb0bd38f5718b56ddbde2f3", + "url": "https://api.github.com/repos/symfony/process/zipball/6e75fe6874cbc7e4773d049616ab450eff537bf1", + "reference": "6e75fe6874cbc7e4773d049616ab450eff537bf1", "shasum": "" }, "require": { @@ -1316,7 +1368,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v5.4.8" + "source": "https://github.com/symfony/process/tree/v5.4.11" }, "funding": [ { @@ -1332,24 +1384,24 @@ "type": "tidelift" } ], - "time": "2022-04-08T05:07:18+00:00" + "time": "2022-06-27T16:58:25+00:00" }, { "name": "symfony/service-contracts", - "version": "v3.0.1", + "version": "v3.1.1", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "e517458f278c2131ca9f262f8fbaf01410f2c65c" + "reference": "925e713fe8fcacf6bc05e936edd8dd5441a21239" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/e517458f278c2131ca9f262f8fbaf01410f2c65c", - "reference": "e517458f278c2131ca9f262f8fbaf01410f2c65c", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/925e713fe8fcacf6bc05e936edd8dd5441a21239", + "reference": "925e713fe8fcacf6bc05e936edd8dd5441a21239", "shasum": "" }, "require": { - "php": ">=8.0.2", + "php": ">=8.1", "psr/container": "^2.0" }, "conflict": { @@ -1361,7 +1413,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "3.1-dev" }, "thanks": { "name": "symfony/contracts", @@ -1371,7 +1423,10 @@ "autoload": { "psr-4": { "Symfony\\Contracts\\Service\\": "" - } + }, + "exclude-from-classmap": [ + "/Test/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1398,7 +1453,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.0.1" + "source": "https://github.com/symfony/service-contracts/tree/v3.1.1" }, "funding": [ { @@ -1414,24 +1469,24 @@ "type": "tidelift" } ], - "time": "2022-03-13T20:10:05+00:00" + "time": "2022-05-30T19:18:58+00:00" }, { "name": "symfony/string", - "version": "v6.0.8", + "version": "v6.1.4", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "ac0aa5c2282e0de624c175b68d13f2c8f2e2649d" + "reference": "290972cad7b364e3befaa74ba0ec729800fb161c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/ac0aa5c2282e0de624c175b68d13f2c8f2e2649d", - "reference": "ac0aa5c2282e0de624c175b68d13f2c8f2e2649d", + "url": "https://api.github.com/repos/symfony/string/zipball/290972cad7b364e3befaa74ba0ec729800fb161c", + "reference": "290972cad7b364e3befaa74ba0ec729800fb161c", "shasum": "" }, "require": { - "php": ">=8.0.2", + "php": ">=8.1", "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-intl-grapheme": "~1.0", "symfony/polyfill-intl-normalizer": "~1.0", @@ -1483,7 +1538,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v6.0.8" + "source": "https://github.com/symfony/string/tree/v6.1.4" }, "funding": [ { @@ -1499,20 +1554,20 @@ "type": "tidelift" } ], - "time": "2022-04-22T08:18:02+00:00" + "time": "2022-08-12T18:05:43+00:00" }, { "name": "symfony/yaml", - "version": "v5.4.3", + "version": "v5.4.12", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "e80f87d2c9495966768310fc531b487ce64237a2" + "reference": "7a3aa21ac8ab1a96cc6de5bbcab4bc9fc943b18c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/e80f87d2c9495966768310fc531b487ce64237a2", - "reference": "e80f87d2c9495966768310fc531b487ce64237a2", + "url": "https://api.github.com/repos/symfony/yaml/zipball/7a3aa21ac8ab1a96cc6de5bbcab4bc9fc943b18c", + "reference": "7a3aa21ac8ab1a96cc6de5bbcab4bc9fc943b18c", "shasum": "" }, "require": { @@ -1558,7 +1613,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v5.4.3" + "source": "https://github.com/symfony/yaml/tree/v5.4.12" }, "funding": [ { @@ -1574,7 +1629,7 @@ "type": "tidelift" } ], - "time": "2022-01-26T16:32:32+00:00" + "time": "2022-08-02T15:52:22+00:00" } ], "aliases": [], @@ -1588,5 +1643,5 @@ "ext-json": "*" }, "platform-dev": [], - "plugin-api-version": "2.1.0" + "plugin-api-version": "2.3.0" } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/BreakoutRoomFeaturesParameters.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/BreakoutRoomFeaturesParameters.php index 1be896b..8a95a86 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/BreakoutRoomFeaturesParameters.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/BreakoutRoomFeaturesParameters.php @@ -1,4 +1,5 @@ isAllow = filter_var($isAllow, FILTER_VALIDATE_BOOLEAN);; + $this->isAllow = filter_var($isAllow, FILTER_VALIDATE_BOOLEAN); + ; } /** diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/ChatFeaturesParameters.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/ChatFeaturesParameters.php index a74c5c4..c8596a7 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/ChatFeaturesParameters.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/ChatFeaturesParameters.php @@ -1,4 +1,5 @@ $this->isAllow, ); } - } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/EndRoomParameters.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/EndRoomParameters.php index 520888c..5d88298 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/EndRoomParameters.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/EndRoomParameters.php @@ -1,4 +1,5 @@ $this->roomId, ); } - } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/ExternalMediaPlayerFeaturesParameters.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/ExternalMediaPlayerFeaturesParameters.php index 276da3f..e5d2c11 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/ExternalMediaPlayerFeaturesParameters.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/ExternalMediaPlayerFeaturesParameters.php @@ -1,4 +1,5 @@ allowedExternalMediaPlayer = filter_var($allowedExternalMediaPlayer, FILTER_VALIDATE_BOOLEAN);; + $this->allowedExternalMediaPlayer = filter_var($allowedExternalMediaPlayer, FILTER_VALIDATE_BOOLEAN); + ; } /** @@ -59,5 +61,4 @@ public function buildBody() "allowed_external_media_player" => $this->allowedExternalMediaPlayer, ); } - } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/FetchRecordingsParameters.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/FetchRecordingsParameters.php index d252f6c..2643108 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/FetchRecordingsParameters.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/FetchRecordingsParameters.php @@ -1,4 +1,5 @@ $this->roomId, ); } - } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/IsRoomActiveParameters.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/IsRoomActiveParameters.php index ab50b7c..8692c30 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/IsRoomActiveParameters.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/IsRoomActiveParameters.php @@ -1,4 +1,5 @@ $this->roomId, ); } - } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/LockSettingsParameters.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/LockSettingsParameters.php index f77719d..ceae43b 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/LockSettingsParameters.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/LockSettingsParameters.php @@ -1,4 +1,5 @@ allowedSharedNotePad = filter_var($allowedSharedNotePad, FILTER_VALIDATE_BOOLEAN);; + $this->allowedSharedNotePad = filter_var($allowedSharedNotePad, FILTER_VALIDATE_BOOLEAN); + ; } /** @@ -67,4 +68,3 @@ public function buildBody() ); } } - diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/UserMetadataParameters.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/UserMetadataParameters.php index dd746fe..a1d7e19 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/UserMetadataParameters.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Parameters/UserMetadataParameters.php @@ -1,4 +1,5 @@ allowedWhiteboard = filter_var($allowedWhiteboard, FILTER_VALIDATE_BOOLEAN);; + $this->allowedWhiteboard = filter_var($allowedWhiteboard, FILTER_VALIDATE_BOOLEAN); + ; } /** @@ -65,5 +67,4 @@ public function buildBody() "allowed_whiteboard" => $this->allowedWhiteboard, ); } - } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/PlugNmeet.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/PlugNmeet.php index 13b977e..deb24ee 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/PlugNmeet.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/PlugNmeet.php @@ -1,4 +1,5 @@ serverUrl = $serverUrl; $this->apiKey = $apiKey; $this->apiSecret = $apiSecret; @@ -79,10 +87,12 @@ public function __construct($serverUrl, $apiKey, $apiSecret) { /** * Create new room + * * @param CreateRoomParameters $createRoomParameters * @return CreateRoomResponse */ - public function createRoom(CreateRoomParameters $createRoomParameters): CreateRoomResponse { + public function createRoom(CreateRoomParameters $createRoomParameters): CreateRoomResponse + { $body = $createRoomParameters->buildBody(); $output = $this->sendRequest("/room/create", $body); return new CreateRoomResponse($output); @@ -90,10 +100,12 @@ public function createRoom(CreateRoomParameters $createRoomParameters): CreateRo /** * Generate join token + * * @param GenerateJoinTokenParameters $generateJoinTokenParameters * @return GenerateJoinTokenResponse */ - public function getJoinToken(GenerateJoinTokenParameters $generateJoinTokenParameters): GenerateJoinTokenResponse { + public function getJoinToken(GenerateJoinTokenParameters $generateJoinTokenParameters): GenerateJoinTokenResponse + { $body = $generateJoinTokenParameters->buildBody(); $output = $this->sendRequest("/room/getJoinToken", $body); return new GenerateJoinTokenResponse($output); @@ -101,10 +113,12 @@ public function getJoinToken(GenerateJoinTokenParameters $generateJoinTokenParam /** * To check if room is active or not + * * @param IsRoomActiveParameters $isRoomActiveParameters * @return IsRoomActiveResponse */ - public function isRoomActive(IsRoomActiveParameters $isRoomActiveParameters): IsRoomActiveResponse { + public function isRoomActive(IsRoomActiveParameters $isRoomActiveParameters): IsRoomActiveResponse + { $body = $isRoomActiveParameters->buildBody(); $output = $this->sendRequest("/room/isRoomActive", $body); return new IsRoomActiveResponse($output); @@ -112,10 +126,12 @@ public function isRoomActive(IsRoomActiveParameters $isRoomActiveParameters): Is /** * Get active room information + * * @param GetActiveRoomInfoParameters $getActiveRoomInfoParameters * @return GetActiveRoomInfoResponse */ - public function getActiveRoomInfo(GetActiveRoomInfoParameters $getActiveRoomInfoParameters): GetActiveRoomInfoResponse { + public function getActiveRoomInfo(GetActiveRoomInfoParameters $getActiveRoomInfoParameters): GetActiveRoomInfoResponse + { $body = $getActiveRoomInfoParameters->buildBody(); $output = $this->sendRequest("/room/getActiveRoomInfo", $body); return new GetActiveRoomInfoResponse($output); @@ -123,19 +139,23 @@ public function getActiveRoomInfo(GetActiveRoomInfoParameters $getActiveRoomInfo /** * Get all active rooms + * * @return GetActiveRoomsInfoResponse */ - public function getActiveRoomsInfo(): GetActiveRoomsInfoResponse { + public function getActiveRoomsInfo(): GetActiveRoomsInfoResponse + { $output = $this->sendRequest("/room/getActiveRoomsInfo", []); return new GetActiveRoomsInfoResponse($output); } /** * End active room + * * @param EndRoomParameters $endRoomParameters * @return EndRoomResponse */ - public function endRoom(EndRoomParameters $endRoomParameters) { + public function endRoom(EndRoomParameters $endRoomParameters) + { $body = $endRoomParameters->buildBody(); $output = $this->sendRequest("/room/endRoom", $body); return new EndRoomResponse($output); @@ -143,10 +163,12 @@ public function endRoom(EndRoomParameters $endRoomParameters) { /** * To fetch recordings + * * @param FetchRecordingsParameters $fetchRecordingsParameters * @return FetchRecordingsResponse */ - public function fetchRecordings(FetchRecordingsParameters $fetchRecordingsParameters): FetchRecordingsResponse { + public function fetchRecordings(FetchRecordingsParameters $fetchRecordingsParameters): FetchRecordingsResponse + { $body = $fetchRecordingsParameters->buildBody(); $output = $this->sendRequest("/recording/fetch", $body); return new FetchRecordingsResponse($output); @@ -154,10 +176,12 @@ public function fetchRecordings(FetchRecordingsParameters $fetchRecordingsParame /** * To delete recording + * * @param DeleteRecordingParameters $deleteRecordingParameters * @return DeleteRecordingResponse */ - public function deleteRecordings(DeleteRecordingParameters $deleteRecordingParameters): DeleteRecordingResponse { + public function deleteRecordings(DeleteRecordingParameters $deleteRecordingParameters): DeleteRecordingResponse + { $body = $deleteRecordingParameters->buildBody(); $output = $this->sendRequest("/recording/delete", $body); return new DeleteRecordingResponse($output); @@ -165,10 +189,12 @@ public function deleteRecordings(DeleteRecordingParameters $deleteRecordingParam /** * Generate token to download recording + * * @param RecordingDownloadTokenParameters $recordingDownloadTokenParameters * @return RecordingDownloadTokenResponse */ - public function getRecordingDownloadToken(RecordingDownloadTokenParameters $recordingDownloadTokenParameters): RecordingDownloadTokenResponse { + public function getRecordingDownloadToken(RecordingDownloadTokenParameters $recordingDownloadTokenParameters): RecordingDownloadTokenResponse + { $body = $recordingDownloadTokenParameters->buildBody(); $output = $this->sendRequest("/recording/getDownloadToken", $body); return new RecordingDownloadTokenResponse($output); @@ -177,7 +203,8 @@ public function getRecordingDownloadToken(RecordingDownloadTokenParameters $reco /** * @return ClientFilesResponses */ - public function getClientFiles() { + public function getClientFiles() + { $output = $this->sendRequest("/getClientFiles", []); return new ClientFilesResponses($output); } @@ -189,7 +216,8 @@ public function getClientFiles() { * @param array $head * @return string */ - public function getJWTencodedData(array $payload, int $validity, $algo = "HS256", array $head = []) { + public function getJWTencodedData(array $payload, int $validity, $algo = "HS256", array $head = []) + { $payload['iss'] = $this->apiKey; $payload['nbf'] = time(); $payload['exp'] = time() + $validity; @@ -202,32 +230,39 @@ public function getJWTencodedData(array $payload, int $validity, $algo = "HS256" * @param string $algo * @return object */ - public function decodeJWTData(string $raw, $algo = "HS256") { + public function decodeJWTData(string $raw, $algo = "HS256") + { return JWT::decode($raw, new Key($this->apiSecret, $algo)); } /** * Generate UUID random string + * * @return string */ - public function getUUID() { + public function getUUID() + { $uuid = Uuid::uuid4(); return $uuid->toString(); } /** - * @param $path + * @param $path * @param array $body * @return object */ - protected function sendRequest($path, array $body) { + protected function sendRequest($path, array $body) + { $output = new \stdClass(); $output->status = false; + $fields = json_encode($body); + $signature = hash_hmac($this->algo, $fields, $this->apiSecret); + $header = array( "Content-type: application/json", "API-KEY: " . $this->apiKey, - "API-SECRET: " . $this->apiSecret + "HASH-SIGNATURE: " . $signature ); $url = $this->serverUrl . $this->defaultPath . $path; @@ -236,7 +271,7 @@ protected function sendRequest($path, array $body) { curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HTTPHEADER, $header); curl_setopt($ch, CURLOPT_POST, true); - curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($body)); + curl_setopt($ch, CURLOPT_POSTFIELDS, $fields); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); curl_setopt($ch, CURLOPT_CAINFO, dirname(__FILE__) . '/cert/cacert.pem'); diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Responses/BaseResponse.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Responses/BaseResponse.php index 7c7f7ac..697defb 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Responses/BaseResponse.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Responses/BaseResponse.php @@ -1,4 +1,5 @@ rawResponse->css; } /** * @return array|null */ - public function getJSFiles(): ?array { + public function getJSFiles(): ?array + { return $this->rawResponse->js; } } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Responses/CreateRoomResponse.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Responses/CreateRoomResponse.php index a188d8a..927babc 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Responses/CreateRoomResponse.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Responses/CreateRoomResponse.php @@ -1,4 +1,5 @@ rawResponse->result)) { + return 0; + } return $this->rawResponse->result->total_recordings; } /** - * @return int|null + * @return int */ - public function getFrom(): ?int + public function getFrom(): int { + if (!isset($this->rawResponse->result)) { + return 0; + } return $this->rawResponse->result->from; } /** - * @return int|null + * @return int */ - public function getLimit(): ?int + public function getLimit(): int { + if (!isset($this->rawResponse->result)) { + return 20; + } return $this->rawResponse->result->limit; } /** - * @return string|null + * @return string */ - public function getOrderBy(): ?string + public function getOrderBy(): string { + if (!isset($this->rawResponse->result)) { + return "DESC"; + } return $this->rawResponse->result->order_by; } @@ -68,6 +81,9 @@ public function getOrderBy(): ?string public function getRecordings(): array { $recordings = []; + if (!isset($this->rawResponse->result)) { + return $recordings; + } if (count($this->rawResponse->result->recordings_list) > 0) { foreach ($this->rawResponse->result->recordings_list as $recording) { @@ -78,4 +94,3 @@ public function getRecordings(): array return $recordings; } } - diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Responses/GenerateJoinTokenResponse.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Responses/GenerateJoinTokenResponse.php index aadccf3..1ea1b3a 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Responses/GenerateJoinTokenResponse.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Responses/GenerateJoinTokenResponse.php @@ -1,4 +1,5 @@ rawResponse->rooms)) { + return $rooms; + } + if (count($this->rawResponse->rooms) > 0) { foreach ($this->rawResponse->rooms as $room) { $response = new \stdClass(); diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Responses/IsRoomActiveResponse.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Responses/IsRoomActiveResponse.php index 3a5dc9d..62cceae 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Responses/IsRoomActiveResponse.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Responses/IsRoomActiveResponse.php @@ -1,4 +1,5 @@ rawResponse->token; } } - diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Utils/ActiveRoomInfo.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Utils/ActiveRoomInfo.php index 42c279c..bf7654e 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Utils/ActiveRoomInfo.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/src/Utils/ActiveRoomInfo.php @@ -1,4 +1,5 @@ recording->room_creation_time; } } - diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/autoload.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/autoload.php index d00371a..6f0df09 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/autoload.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/autoload.php @@ -2,6 +2,11 @@ // autoload.php @generated by Composer +if (PHP_VERSION_ID < 50600) { + echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; + exit(1); +} + require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInitccba094c0e2d91ef1c96be041076be8f::getLoader(); +return ComposerAutoloaderInitdb58d5b0f2a0a372523d2811c8ae1b5d::getLoader(); diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/CHANGELOG.md b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/CHANGELOG.md index 03c3d82..c5c5893 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/CHANGELOG.md +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/CHANGELOG.md @@ -2,11 +2,29 @@ All notable changes to this project will be documented in this file. +## [0.10.2](https://github.com/brick/math/releases/tag/0.10.2) - 2022-08-11 + +👌 **Improvements** + +- `BigRational::toFloat()` now simplifies the fraction before performing division (#73) thanks to @olsavmic + +## [0.10.1](https://github.com/brick/math/releases/tag/0.10.1) - 2022-08-02 + +✨ **New features** + +- `BigInteger::gcdMultiple()` returns the GCD of multiple `BigInteger` numbers + +## [0.10.0](https://github.com/brick/math/releases/tag/0.10.0) - 2022-06-18 + +💥 **Breaking changes** + +- Minimum PHP version is now 7.4 + ## [0.9.3](https://github.com/brick/math/releases/tag/0.9.3) - 2021-08-15 🚀 **Compatibility with PHP 8.1** -- Support for custom object serialization; this removes a warning on PHP 8.1 due to the `Serializable` interface being deprecated (thanks @TRowbotham) +- Support for custom object serialization; this removes a warning on PHP 8.1 due to the `Serializable` interface being deprecated (#60) thanks @TRowbotham ## [0.9.2](https://github.com/brick/math/releases/tag/0.9.2) - 2021-01-20 @@ -16,7 +34,7 @@ All notable changes to this project will be documented in this file. ## [0.9.1](https://github.com/brick/math/releases/tag/0.9.1) - 2020-08-19 -✨ New features +✨ **New features** - `BigInteger::not()` returns the bitwise `NOT` value diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/SECURITY.md b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/SECURITY.md deleted file mode 100644 index cc8289b..0000000 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/SECURITY.md +++ /dev/null @@ -1,17 +0,0 @@ -# Security Policy - -## Supported Versions - -Only the last two release streams are supported. - -| Version | Supported | -| ------- | ------------------ | -| 0.9.x | :white_check_mark: | -| 0.8.x | :white_check_mark: | -| < 0.8 | :x: | - -## Reporting a Vulnerability - -To report a security vulnerability, please use the -[Tidelift security contact](https://tidelift.com/security). -Tidelift will coordinate the fix and disclosure. diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/composer.json b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/composer.json index ec19663..a8124e9 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/composer.json +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/composer.json @@ -14,13 +14,13 @@ ], "license": "MIT", "require": { - "php": "^7.1 || ^8.0", + "php": "^7.4 || ^8.0", "ext-json": "*" }, "require-dev": { - "phpunit/phpunit": "^7.5.15 || ^8.5 || ^9.0", + "phpunit/phpunit": "^9.0", "php-coveralls/php-coveralls": "^2.2", - "vimeo/psalm": "4.9.2" + "vimeo/psalm": "4.25.0" }, "autoload": { "psr-4": { diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/BigDecimal.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/BigDecimal.php index 7824650..fd2babb 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/BigDecimal.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/BigDecimal.php @@ -22,19 +22,15 @@ final class BigDecimal extends BigNumber * This is a string of digits with an optional leading minus sign. * No leading zero must be present. * No leading minus sign must be present if the value is 0. - * - * @var string */ - private $value; + private string $value; /** * The scale (number of digits after the decimal point) of this decimal number. * * This must be zero or more. - * - * @var int */ - private $scale; + private int $scale; /** * Protected constructor. Use a factory method to obtain an instance. diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/BigInteger.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/BigInteger.php index f213fbe..f58e1c5 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/BigInteger.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/BigInteger.php @@ -26,10 +26,8 @@ final class BigInteger extends BigNumber * * No leading zeros must be present. * No leading minus sign must be present if the number is zero. - * - * @var string */ - private $value; + private string $value; /** * Protected constructor. Use a factory method to obtain an instance. @@ -361,6 +359,21 @@ public static function ten() : BigInteger return $ten; } + public static function gcdMultiple(BigInteger $a, BigInteger ...$n): BigInteger + { + $result = $a; + + foreach ($n as $next) { + $result = $result->gcd($next); + + if ($result->isEqualTo(1)) { + return $result; + } + } + + return $result; + } + /** * Returns the sum of this number and the given one. * diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/BigNumber.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/BigNumber.php index 38c8c55..44f26e3 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/BigNumber.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/BigNumber.php @@ -81,9 +81,7 @@ public static function of($value) : BigNumber $throw(); } - $getMatch = static function(string $value) use ($matches) : ?string { - return isset($matches[$value]) && $matches[$value] !== '' ? $matches[$value] : null; - }; + $getMatch = static fn(string $value): ?string => (($matches[$value] ?? '') !== '') ? $matches[$value] : null; $sign = $getMatch('sign'); $numerator = $getMatch('numerator'); diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/BigRational.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/BigRational.php index bee094f..4625781 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/BigRational.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/BigRational.php @@ -20,17 +20,13 @@ final class BigRational extends BigNumber { /** * The numerator. - * - * @var BigInteger */ - private $numerator; + private BigInteger $numerator; /** * The denominator. Always strictly positive. - * - * @var BigInteger */ - private $denominator; + private BigInteger $denominator; /** * Protected constructor. Use a factory method to obtain an instance. @@ -433,7 +429,8 @@ public function toInt() : int */ public function toFloat() : float { - return $this->numerator->toFloat() / $this->denominator->toFloat(); + $simplified = $this->simplified(); + return $simplified->numerator->toFloat() / $simplified->denominator->toFloat(); } /** diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/Internal/Calculator.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/Internal/Calculator.php index a6eac79..99bebbe 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/Internal/Calculator.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/Internal/Calculator.php @@ -34,10 +34,8 @@ abstract class Calculator /** * The Calculator instance in use. - * - * @var Calculator|null */ - private static $instance; + private static ?Calculator $instance = null; /** * Sets the Calculator instance to use. @@ -234,7 +232,7 @@ abstract public function divR(string $a, string $b) : string; * @param string $a The dividend. * @param string $b The divisor, must not be zero. * - * @return string[] An array containing the quotient and remainder. + * @return array{string, string} An array containing the quotient and remainder. */ abstract public function divQR(string $a, string $b) : array; @@ -283,9 +281,7 @@ public function modInverse(string $x, string $m) : ?string $modVal = $this->mod($x, $m); } - $x = '0'; - $y = '0'; - $g = $this->gcdExtended($modVal, $m, $x, $y); + [$g, $x] = $this->gcdExtended($modVal, $m); if ($g !== '1') { return null; @@ -329,24 +325,21 @@ public function gcd(string $a, string $b) : string return $this->gcd($b, $this->divR($a, $b)); } - private function gcdExtended(string $a, string $b, string &$x, string &$y) : string + /** + * @return array{string, string, string} GCD, X, Y + */ + private function gcdExtended(string $a, string $b) : array { if ($a === '0') { - $x = '0'; - $y = '1'; - - return $b; + return [$b, '0', '1']; } - $x1 = '0'; - $y1 = '0'; - - $gcd = $this->gcdExtended($this->mod($b, $a), $a, $x1, $y1); + [$gcd, $x1, $y1] = $this->gcdExtended($this->mod($b, $a), $a); $x = $this->sub($y1, $this->mul($this->divQ($b, $a), $x1)); $y = $x1; - return $gcd; + return [$gcd, $x, $y]; } /** @@ -493,6 +486,8 @@ final public function toArbitraryBase(string $number, string $alphabet, int $bas * * @throws \InvalidArgumentException If the rounding mode is invalid. * @throws RoundingNecessaryException If RoundingMode::UNNECESSARY is provided but rounding is necessary. + * + * @psalm-suppress ImpureFunctionCall */ final public function divRound(string $a, string $b, int $roundingMode) : string { @@ -616,9 +611,9 @@ public function xor(string $a, string $b) : string /** * Performs a bitwise operation on a decimal number. * - * @param string $operator The operator to use, must be "and", "or" or "xor". - * @param string $a The left operand. - * @param string $b The right operand. + * @param 'and'|'or'|'xor' $operator The operator to use. + * @param string $a The left operand. + * @param string $b The right operand. * * @return string */ diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/Internal/Calculator/BcMathCalculator.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/Internal/Calculator/BcMathCalculator.php index 6632b37..3407868 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/Internal/Calculator/BcMathCalculator.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/Internal/Calculator/BcMathCalculator.php @@ -94,9 +94,6 @@ public function pow(string $a, int $e) : string /** * {@inheritdoc} - * - * @psalm-suppress InvalidNullableReturnType - * @psalm-suppress NullableReturnStatement */ public function modPow(string $base, string $exp, string $mod) : string { @@ -105,9 +102,6 @@ public function modPow(string $base, string $exp, string $mod) : string /** * {@inheritDoc} - * - * @psalm-suppress NullableReturnStatement - * @psalm-suppress InvalidNullableReturnType */ public function sqrt(string $n) : string { diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/Internal/Calculator/NativeCalculator.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/Internal/Calculator/NativeCalculator.php index 020a633..a7eb23b 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/Internal/Calculator/NativeCalculator.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/brick/math/src/Internal/Calculator/NativeCalculator.php @@ -22,10 +22,8 @@ class NativeCalculator extends Calculator * For addition, it is assumed that an extra digit can hold a carry (1) without overflowing. * Example: 32-bit: max number 1,999,999,999 (9 digits + carry) * 64-bit: max number 1,999,999,999,999,999,999 (18 digits + carry) - * - * @var int */ - private $maxDigits; + private int $maxDigits; /** * Class constructor. diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/ClassLoader.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/ClassLoader.php index 6d0c3f2..afef3fa 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/ClassLoader.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/ClassLoader.php @@ -42,30 +42,75 @@ */ class ClassLoader { + /** @var ?string */ private $vendorDir; // PSR-4 + /** + * @var array[] + * @psalm-var array> + */ private $prefixLengthsPsr4 = array(); + /** + * @var array[] + * @psalm-var array> + */ private $prefixDirsPsr4 = array(); + /** + * @var array[] + * @psalm-var array + */ private $fallbackDirsPsr4 = array(); // PSR-0 + /** + * @var array[] + * @psalm-var array> + */ private $prefixesPsr0 = array(); + /** + * @var array[] + * @psalm-var array + */ private $fallbackDirsPsr0 = array(); + /** @var bool */ private $useIncludePath = false; + + /** + * @var string[] + * @psalm-var array + */ private $classMap = array(); + + /** @var bool */ private $classMapAuthoritative = false; + + /** + * @var bool[] + * @psalm-var array + */ private $missingClasses = array(); + + /** @var ?string */ private $apcuPrefix; + /** + * @var self[] + */ private static $registeredLoaders = array(); + /** + * @param ?string $vendorDir + */ public function __construct($vendorDir = null) { $this->vendorDir = $vendorDir; } + /** + * @return string[] + */ public function getPrefixes() { if (!empty($this->prefixesPsr0)) { @@ -75,28 +120,47 @@ public function getPrefixes() return array(); } + /** + * @return array[] + * @psalm-return array> + */ public function getPrefixesPsr4() { return $this->prefixDirsPsr4; } + /** + * @return array[] + * @psalm-return array + */ public function getFallbackDirs() { return $this->fallbackDirsPsr0; } + /** + * @return array[] + * @psalm-return array + */ public function getFallbackDirsPsr4() { return $this->fallbackDirsPsr4; } + /** + * @return string[] Array of classname => path + * @psalm-return array + */ public function getClassMap() { return $this->classMap; } /** - * @param array $classMap Class to filename map + * @param string[] $classMap Class to filename map + * @psalm-param array $classMap + * + * @return void */ public function addClassMap(array $classMap) { @@ -111,9 +175,11 @@ public function addClassMap(array $classMap) * Registers a set of PSR-0 directories for a given prefix, either * appending or prepending to the ones previously set for this prefix. * - * @param string $prefix The prefix - * @param array|string $paths The PSR-0 root directories - * @param bool $prepend Whether to prepend the directories + * @param string $prefix The prefix + * @param string[]|string $paths The PSR-0 root directories + * @param bool $prepend Whether to prepend the directories + * + * @return void */ public function add($prefix, $paths, $prepend = false) { @@ -156,11 +222,13 @@ public function add($prefix, $paths, $prepend = false) * Registers a set of PSR-4 directories for a given namespace, either * appending or prepending to the ones previously set for this namespace. * - * @param string $prefix The prefix/namespace, with trailing '\\' - * @param array|string $paths The PSR-4 base directories - * @param bool $prepend Whether to prepend the directories + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param string[]|string $paths The PSR-4 base directories + * @param bool $prepend Whether to prepend the directories * * @throws \InvalidArgumentException + * + * @return void */ public function addPsr4($prefix, $paths, $prepend = false) { @@ -204,8 +272,10 @@ public function addPsr4($prefix, $paths, $prepend = false) * Registers a set of PSR-0 directories for a given prefix, * replacing any others previously set for this prefix. * - * @param string $prefix The prefix - * @param array|string $paths The PSR-0 base directories + * @param string $prefix The prefix + * @param string[]|string $paths The PSR-0 base directories + * + * @return void */ public function set($prefix, $paths) { @@ -220,10 +290,12 @@ public function set($prefix, $paths) * Registers a set of PSR-4 directories for a given namespace, * replacing any others previously set for this namespace. * - * @param string $prefix The prefix/namespace, with trailing '\\' - * @param array|string $paths The PSR-4 base directories + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param string[]|string $paths The PSR-4 base directories * * @throws \InvalidArgumentException + * + * @return void */ public function setPsr4($prefix, $paths) { @@ -243,6 +315,8 @@ public function setPsr4($prefix, $paths) * Turns on searching the include path for class files. * * @param bool $useIncludePath + * + * @return void */ public function setUseIncludePath($useIncludePath) { @@ -265,6 +339,8 @@ public function getUseIncludePath() * that have not been registered with the class map. * * @param bool $classMapAuthoritative + * + * @return void */ public function setClassMapAuthoritative($classMapAuthoritative) { @@ -285,6 +361,8 @@ public function isClassMapAuthoritative() * APCu prefix to use to cache found/not-found classes, if the extension is enabled. * * @param string|null $apcuPrefix + * + * @return void */ public function setApcuPrefix($apcuPrefix) { @@ -305,6 +383,8 @@ public function getApcuPrefix() * Registers this instance as an autoloader. * * @param bool $prepend Whether to prepend the autoloader or not + * + * @return void */ public function register($prepend = false) { @@ -324,6 +404,8 @@ public function register($prepend = false) /** * Unregisters this instance as an autoloader. + * + * @return void */ public function unregister() { @@ -403,6 +485,11 @@ public static function getRegisteredLoaders() return self::$registeredLoaders; } + /** + * @param string $class + * @param string $ext + * @return string|false + */ private function findFileWithExtension($class, $ext) { // PSR-4 lookup @@ -474,6 +561,10 @@ private function findFileWithExtension($class, $ext) * Scope isolated include. * * Prevents access to $this/self from included files. + * + * @param string $file + * @return void + * @private */ function includeFile($file) { diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/InstalledVersions.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/InstalledVersions.php index b3a4e16..c6b54af 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/InstalledVersions.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/InstalledVersions.php @@ -20,12 +20,27 @@ * * See also https://getcomposer.org/doc/07-runtime.md#installed-versions * - * To require it's presence, you can require `composer-runtime-api ^2.0` + * To require its presence, you can require `composer-runtime-api ^2.0` + * + * @final */ class InstalledVersions { + /** + * @var mixed[]|null + * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array}|array{}|null + */ private static $installed; + + /** + * @var bool|null + */ private static $canGetVendors; + + /** + * @var array[] + * @psalm-var array}> + */ private static $installedByVendor = array(); /** @@ -228,7 +243,7 @@ public static function getInstallPath($packageName) /** * @return array - * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string} + * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool} */ public static function getRootPackage() { @@ -242,7 +257,7 @@ public static function getRootPackage() * * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect. * @return array[] - * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array} + * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} */ public static function getRawData() { @@ -265,7 +280,7 @@ public static function getRawData() * Returns the raw data of all installed.php which are currently loaded for custom implementations * * @return array[] - * @psalm-return list}> + * @psalm-return list}> */ public static function getAllRawData() { @@ -288,7 +303,7 @@ public static function getAllRawData() * @param array[] $data A vendor/composer/installed.php data set * @return void * - * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array} $data + * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $data */ public static function reload($data) { @@ -298,7 +313,7 @@ public static function reload($data) /** * @return array[] - * @psalm-return list}> + * @psalm-return list}> */ private static function getInstalled() { diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/autoload_classmap.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/autoload_classmap.php index b3f164f..b080d16 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/autoload_classmap.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/autoload_classmap.php @@ -2,7 +2,7 @@ // autoload_classmap.php @generated by Composer -$vendorDir = dirname(dirname(__FILE__)); +$vendorDir = dirname(__DIR__); $baseDir = dirname($vendorDir); return array( @@ -29,9 +29,11 @@ 'Firebase\\JWT\\JWT' => $vendorDir . '/firebase/php-jwt/src/JWT.php', 'Firebase\\JWT\\Key' => $vendorDir . '/firebase/php-jwt/src/Key.php', 'Firebase\\JWT\\SignatureInvalidException' => $vendorDir . '/firebase/php-jwt/src/SignatureInvalidException.php', + 'Mynaparrot\\Plugnmeet\\Parameters\\BreakoutRoomFeaturesParameters' => $baseDir . '/src/Parameters/BreakoutRoomFeaturesParameters.php', 'Mynaparrot\\Plugnmeet\\Parameters\\ChatFeaturesParameters' => $baseDir . '/src/Parameters/ChatFeaturesParameters.php', 'Mynaparrot\\Plugnmeet\\Parameters\\CreateRoomParameters' => $baseDir . '/src/Parameters/CreateRoomParameters.php', 'Mynaparrot\\Plugnmeet\\Parameters\\DeleteRecordingParameters' => $baseDir . '/src/Parameters/DeleteRecordingParameters.php', + 'Mynaparrot\\Plugnmeet\\Parameters\\DisplayExternalLinkFeaturesParameters' => $baseDir . '/src/Parameters/DisplayExternalLinkFeaturesParameters.php', 'Mynaparrot\\Plugnmeet\\Parameters\\EndRoomParameters' => $baseDir . '/src/Parameters/EndRoomParameters.php', 'Mynaparrot\\Plugnmeet\\Parameters\\ExternalMediaPlayerFeaturesParameters' => $baseDir . '/src/Parameters/ExternalMediaPlayerFeaturesParameters.php', 'Mynaparrot\\Plugnmeet\\Parameters\\FetchRecordingsParameters' => $baseDir . '/src/Parameters/FetchRecordingsParameters.php', @@ -44,10 +46,11 @@ 'Mynaparrot\\Plugnmeet\\Parameters\\RoomMetadataParameters' => $baseDir . '/src/Parameters/RoomMetadataParameters.php', 'Mynaparrot\\Plugnmeet\\Parameters\\SharedNotePadFeaturesParameters' => $baseDir . '/src/Parameters/SharedNotePadFeaturesParameters.php', 'Mynaparrot\\Plugnmeet\\Parameters\\UserMetadataParameters' => $baseDir . '/src/Parameters/UserMetadataParameters.php', - 'Mynaparrot\\Plugnmeet\\Parameters\\WaitingRoomFeatures' => $baseDir . '/src/Parameters/WaitingRoomFeatures.php', + 'Mynaparrot\\Plugnmeet\\Parameters\\WaitingRoomFeaturesParameters' => $baseDir . '/src/Parameters/WaitingRoomFeaturesParameters.php', 'Mynaparrot\\Plugnmeet\\Parameters\\WhiteboardFeaturesParameters' => $baseDir . '/src/Parameters/WhiteboardFeaturesParameters.php', 'Mynaparrot\\Plugnmeet\\PlugNmeet' => $baseDir . '/src/PlugNmeet.php', 'Mynaparrot\\Plugnmeet\\Responses\\BaseResponse' => $baseDir . '/src/Responses/BaseResponse.php', + 'Mynaparrot\\Plugnmeet\\Responses\\ClientFilesResponses' => $baseDir . '/src/Responses/ClientFilesResponses.php', 'Mynaparrot\\Plugnmeet\\Responses\\CreateRoomResponse' => $baseDir . '/src/Responses/CreateRoomResponse.php', 'Mynaparrot\\Plugnmeet\\Responses\\DeleteRecordingResponse' => $baseDir . '/src/Responses/DeleteRecordingResponse.php', 'Mynaparrot\\Plugnmeet\\Responses\\EndRoomResponse' => $baseDir . '/src/Responses/EndRoomResponse.php', @@ -110,6 +113,7 @@ 'Ramsey\\Uuid\\Converter\\Time\\DegradedTimeConverter' => $vendorDir . '/ramsey/uuid/src/Converter/Time/DegradedTimeConverter.php', 'Ramsey\\Uuid\\Converter\\Time\\GenericTimeConverter' => $vendorDir . '/ramsey/uuid/src/Converter/Time/GenericTimeConverter.php', 'Ramsey\\Uuid\\Converter\\Time\\PhpTimeConverter' => $vendorDir . '/ramsey/uuid/src/Converter/Time/PhpTimeConverter.php', + 'Ramsey\\Uuid\\Converter\\Time\\UnixTimeConverter' => $vendorDir . '/ramsey/uuid/src/Converter/Time/UnixTimeConverter.php', 'Ramsey\\Uuid\\DegradedUuid' => $vendorDir . '/ramsey/uuid/src/DegradedUuid.php', 'Ramsey\\Uuid\\DeprecatedUuidInterface' => $vendorDir . '/ramsey/uuid/src/DeprecatedUuidInterface.php', 'Ramsey\\Uuid\\DeprecatedUuidMethodsTrait' => $vendorDir . '/ramsey/uuid/src/DeprecatedUuidMethodsTrait.php', @@ -145,6 +149,7 @@ 'Ramsey\\Uuid\\Generator\\RandomLibAdapter' => $vendorDir . '/ramsey/uuid/src/Generator/RandomLibAdapter.php', 'Ramsey\\Uuid\\Generator\\TimeGeneratorFactory' => $vendorDir . '/ramsey/uuid/src/Generator/TimeGeneratorFactory.php', 'Ramsey\\Uuid\\Generator\\TimeGeneratorInterface' => $vendorDir . '/ramsey/uuid/src/Generator/TimeGeneratorInterface.php', + 'Ramsey\\Uuid\\Generator\\UnixTimeGenerator' => $vendorDir . '/ramsey/uuid/src/Generator/UnixTimeGenerator.php', 'Ramsey\\Uuid\\Guid\\Fields' => $vendorDir . '/ramsey/uuid/src/Guid/Fields.php', 'Ramsey\\Uuid\\Guid\\Guid' => $vendorDir . '/ramsey/uuid/src/Guid/Guid.php', 'Ramsey\\Uuid\\Guid\\GuidBuilder' => $vendorDir . '/ramsey/uuid/src/Guid/GuidBuilder.php', @@ -169,8 +174,11 @@ 'Ramsey\\Uuid\\Provider\\Time\\SystemTimeProvider' => $vendorDir . '/ramsey/uuid/src/Provider/Time/SystemTimeProvider.php', 'Ramsey\\Uuid\\Rfc4122\\Fields' => $vendorDir . '/ramsey/uuid/src/Rfc4122/Fields.php', 'Ramsey\\Uuid\\Rfc4122\\FieldsInterface' => $vendorDir . '/ramsey/uuid/src/Rfc4122/FieldsInterface.php', + 'Ramsey\\Uuid\\Rfc4122\\MaxTrait' => $vendorDir . '/ramsey/uuid/src/Rfc4122/MaxTrait.php', + 'Ramsey\\Uuid\\Rfc4122\\MaxUuid' => $vendorDir . '/ramsey/uuid/src/Rfc4122/MaxUuid.php', 'Ramsey\\Uuid\\Rfc4122\\NilTrait' => $vendorDir . '/ramsey/uuid/src/Rfc4122/NilTrait.php', 'Ramsey\\Uuid\\Rfc4122\\NilUuid' => $vendorDir . '/ramsey/uuid/src/Rfc4122/NilUuid.php', + 'Ramsey\\Uuid\\Rfc4122\\TimeTrait' => $vendorDir . '/ramsey/uuid/src/Rfc4122/TimeTrait.php', 'Ramsey\\Uuid\\Rfc4122\\UuidBuilder' => $vendorDir . '/ramsey/uuid/src/Rfc4122/UuidBuilder.php', 'Ramsey\\Uuid\\Rfc4122\\UuidInterface' => $vendorDir . '/ramsey/uuid/src/Rfc4122/UuidInterface.php', 'Ramsey\\Uuid\\Rfc4122\\UuidV1' => $vendorDir . '/ramsey/uuid/src/Rfc4122/UuidV1.php', @@ -178,6 +186,8 @@ 'Ramsey\\Uuid\\Rfc4122\\UuidV3' => $vendorDir . '/ramsey/uuid/src/Rfc4122/UuidV3.php', 'Ramsey\\Uuid\\Rfc4122\\UuidV4' => $vendorDir . '/ramsey/uuid/src/Rfc4122/UuidV4.php', 'Ramsey\\Uuid\\Rfc4122\\UuidV5' => $vendorDir . '/ramsey/uuid/src/Rfc4122/UuidV5.php', + 'Ramsey\\Uuid\\Rfc4122\\UuidV6' => $vendorDir . '/ramsey/uuid/src/Rfc4122/UuidV6.php', + 'Ramsey\\Uuid\\Rfc4122\\UuidV7' => $vendorDir . '/ramsey/uuid/src/Rfc4122/UuidV7.php', 'Ramsey\\Uuid\\Rfc4122\\Validator' => $vendorDir . '/ramsey/uuid/src/Rfc4122/Validator.php', 'Ramsey\\Uuid\\Rfc4122\\VariantTrait' => $vendorDir . '/ramsey/uuid/src/Rfc4122/VariantTrait.php', 'Ramsey\\Uuid\\Rfc4122\\VersionTrait' => $vendorDir . '/ramsey/uuid/src/Rfc4122/VersionTrait.php', diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/autoload_files.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/autoload_files.php index 5659fb3..b19d2f7 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/autoload_files.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/autoload_files.php @@ -2,7 +2,7 @@ // autoload_files.php @generated by Composer -$vendorDir = dirname(dirname(__FILE__)); +$vendorDir = dirname(__DIR__); $baseDir = dirname($vendorDir); return array( diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/autoload_namespaces.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/autoload_namespaces.php index b7fc012..15a2ff3 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/autoload_namespaces.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/autoload_namespaces.php @@ -2,7 +2,7 @@ // autoload_namespaces.php @generated by Composer -$vendorDir = dirname(dirname(__FILE__)); +$vendorDir = dirname(__DIR__); $baseDir = dirname($vendorDir); return array( diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/autoload_psr4.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/autoload_psr4.php index ff51a92..bebc238 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/autoload_psr4.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/autoload_psr4.php @@ -2,7 +2,7 @@ // autoload_psr4.php @generated by Composer -$vendorDir = dirname(dirname(__FILE__)); +$vendorDir = dirname(__DIR__); $baseDir = dirname($vendorDir); return array( diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/autoload_real.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/autoload_real.php index 223c070..764ea34 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/autoload_real.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInitccba094c0e2d91ef1c96be041076be8f +class ComposerAutoloaderInitdb58d5b0f2a0a372523d2811c8ae1b5d { private static $loader; @@ -22,52 +22,34 @@ public static function getLoader() return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInitccba094c0e2d91ef1c96be041076be8f', 'loadClassLoader'), true, true); - self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); - spl_autoload_unregister(array('ComposerAutoloaderInitccba094c0e2d91ef1c96be041076be8f', 'loadClassLoader')); + spl_autoload_register(array('ComposerAutoloaderInitdb58d5b0f2a0a372523d2811c8ae1b5d', 'loadClassLoader'), true, true); + self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); + spl_autoload_unregister(array('ComposerAutoloaderInitdb58d5b0f2a0a372523d2811c8ae1b5d', 'loadClassLoader')); - $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); - if ($useStaticLoader) { - require __DIR__ . '/autoload_static.php'; - - call_user_func(\Composer\Autoload\ComposerStaticInitccba094c0e2d91ef1c96be041076be8f::getInitializer($loader)); - } else { - $map = require __DIR__ . '/autoload_namespaces.php'; - foreach ($map as $namespace => $path) { - $loader->set($namespace, $path); - } - - $map = require __DIR__ . '/autoload_psr4.php'; - foreach ($map as $namespace => $path) { - $loader->setPsr4($namespace, $path); - } - - $classMap = require __DIR__ . '/autoload_classmap.php'; - if ($classMap) { - $loader->addClassMap($classMap); - } - } + require __DIR__ . '/autoload_static.php'; + call_user_func(\Composer\Autoload\ComposerStaticInitdb58d5b0f2a0a372523d2811c8ae1b5d::getInitializer($loader)); $loader->register(true); - if ($useStaticLoader) { - $includeFiles = Composer\Autoload\ComposerStaticInitccba094c0e2d91ef1c96be041076be8f::$files; - } else { - $includeFiles = require __DIR__ . '/autoload_files.php'; - } + $includeFiles = \Composer\Autoload\ComposerStaticInitdb58d5b0f2a0a372523d2811c8ae1b5d::$files; foreach ($includeFiles as $fileIdentifier => $file) { - composerRequireccba094c0e2d91ef1c96be041076be8f($fileIdentifier, $file); + composerRequiredb58d5b0f2a0a372523d2811c8ae1b5d($fileIdentifier, $file); } return $loader; } } -function composerRequireccba094c0e2d91ef1c96be041076be8f($fileIdentifier, $file) +/** + * @param string $fileIdentifier + * @param string $file + * @return void + */ +function composerRequiredb58d5b0f2a0a372523d2811c8ae1b5d($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { - require $file; - $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; + + require $file; } } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/autoload_static.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/autoload_static.php index 7b5d7d4..963e72d 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/autoload_static.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInitccba094c0e2d91ef1c96be041076be8f +class ComposerStaticInitdb58d5b0f2a0a372523d2811c8ae1b5d { public static $files = array ( '23c18046f52bef3eea034657bafda50f' => __DIR__ . '/..' . '/symfony/polyfill-php81/bootstrap.php', @@ -86,9 +86,11 @@ class ComposerStaticInitccba094c0e2d91ef1c96be041076be8f 'Firebase\\JWT\\JWT' => __DIR__ . '/..' . '/firebase/php-jwt/src/JWT.php', 'Firebase\\JWT\\Key' => __DIR__ . '/..' . '/firebase/php-jwt/src/Key.php', 'Firebase\\JWT\\SignatureInvalidException' => __DIR__ . '/..' . '/firebase/php-jwt/src/SignatureInvalidException.php', + 'Mynaparrot\\Plugnmeet\\Parameters\\BreakoutRoomFeaturesParameters' => __DIR__ . '/../..' . '/src/Parameters/BreakoutRoomFeaturesParameters.php', 'Mynaparrot\\Plugnmeet\\Parameters\\ChatFeaturesParameters' => __DIR__ . '/../..' . '/src/Parameters/ChatFeaturesParameters.php', 'Mynaparrot\\Plugnmeet\\Parameters\\CreateRoomParameters' => __DIR__ . '/../..' . '/src/Parameters/CreateRoomParameters.php', 'Mynaparrot\\Plugnmeet\\Parameters\\DeleteRecordingParameters' => __DIR__ . '/../..' . '/src/Parameters/DeleteRecordingParameters.php', + 'Mynaparrot\\Plugnmeet\\Parameters\\DisplayExternalLinkFeaturesParameters' => __DIR__ . '/../..' . '/src/Parameters/DisplayExternalLinkFeaturesParameters.php', 'Mynaparrot\\Plugnmeet\\Parameters\\EndRoomParameters' => __DIR__ . '/../..' . '/src/Parameters/EndRoomParameters.php', 'Mynaparrot\\Plugnmeet\\Parameters\\ExternalMediaPlayerFeaturesParameters' => __DIR__ . '/../..' . '/src/Parameters/ExternalMediaPlayerFeaturesParameters.php', 'Mynaparrot\\Plugnmeet\\Parameters\\FetchRecordingsParameters' => __DIR__ . '/../..' . '/src/Parameters/FetchRecordingsParameters.php', @@ -101,10 +103,11 @@ class ComposerStaticInitccba094c0e2d91ef1c96be041076be8f 'Mynaparrot\\Plugnmeet\\Parameters\\RoomMetadataParameters' => __DIR__ . '/../..' . '/src/Parameters/RoomMetadataParameters.php', 'Mynaparrot\\Plugnmeet\\Parameters\\SharedNotePadFeaturesParameters' => __DIR__ . '/../..' . '/src/Parameters/SharedNotePadFeaturesParameters.php', 'Mynaparrot\\Plugnmeet\\Parameters\\UserMetadataParameters' => __DIR__ . '/../..' . '/src/Parameters/UserMetadataParameters.php', - 'Mynaparrot\\Plugnmeet\\Parameters\\WaitingRoomFeatures' => __DIR__ . '/../..' . '/src/Parameters/WaitingRoomFeatures.php', + 'Mynaparrot\\Plugnmeet\\Parameters\\WaitingRoomFeaturesParameters' => __DIR__ . '/../..' . '/src/Parameters/WaitingRoomFeaturesParameters.php', 'Mynaparrot\\Plugnmeet\\Parameters\\WhiteboardFeaturesParameters' => __DIR__ . '/../..' . '/src/Parameters/WhiteboardFeaturesParameters.php', 'Mynaparrot\\Plugnmeet\\PlugNmeet' => __DIR__ . '/../..' . '/src/PlugNmeet.php', 'Mynaparrot\\Plugnmeet\\Responses\\BaseResponse' => __DIR__ . '/../..' . '/src/Responses/BaseResponse.php', + 'Mynaparrot\\Plugnmeet\\Responses\\ClientFilesResponses' => __DIR__ . '/../..' . '/src/Responses/ClientFilesResponses.php', 'Mynaparrot\\Plugnmeet\\Responses\\CreateRoomResponse' => __DIR__ . '/../..' . '/src/Responses/CreateRoomResponse.php', 'Mynaparrot\\Plugnmeet\\Responses\\DeleteRecordingResponse' => __DIR__ . '/../..' . '/src/Responses/DeleteRecordingResponse.php', 'Mynaparrot\\Plugnmeet\\Responses\\EndRoomResponse' => __DIR__ . '/../..' . '/src/Responses/EndRoomResponse.php', @@ -167,6 +170,7 @@ class ComposerStaticInitccba094c0e2d91ef1c96be041076be8f 'Ramsey\\Uuid\\Converter\\Time\\DegradedTimeConverter' => __DIR__ . '/..' . '/ramsey/uuid/src/Converter/Time/DegradedTimeConverter.php', 'Ramsey\\Uuid\\Converter\\Time\\GenericTimeConverter' => __DIR__ . '/..' . '/ramsey/uuid/src/Converter/Time/GenericTimeConverter.php', 'Ramsey\\Uuid\\Converter\\Time\\PhpTimeConverter' => __DIR__ . '/..' . '/ramsey/uuid/src/Converter/Time/PhpTimeConverter.php', + 'Ramsey\\Uuid\\Converter\\Time\\UnixTimeConverter' => __DIR__ . '/..' . '/ramsey/uuid/src/Converter/Time/UnixTimeConverter.php', 'Ramsey\\Uuid\\DegradedUuid' => __DIR__ . '/..' . '/ramsey/uuid/src/DegradedUuid.php', 'Ramsey\\Uuid\\DeprecatedUuidInterface' => __DIR__ . '/..' . '/ramsey/uuid/src/DeprecatedUuidInterface.php', 'Ramsey\\Uuid\\DeprecatedUuidMethodsTrait' => __DIR__ . '/..' . '/ramsey/uuid/src/DeprecatedUuidMethodsTrait.php', @@ -202,6 +206,7 @@ class ComposerStaticInitccba094c0e2d91ef1c96be041076be8f 'Ramsey\\Uuid\\Generator\\RandomLibAdapter' => __DIR__ . '/..' . '/ramsey/uuid/src/Generator/RandomLibAdapter.php', 'Ramsey\\Uuid\\Generator\\TimeGeneratorFactory' => __DIR__ . '/..' . '/ramsey/uuid/src/Generator/TimeGeneratorFactory.php', 'Ramsey\\Uuid\\Generator\\TimeGeneratorInterface' => __DIR__ . '/..' . '/ramsey/uuid/src/Generator/TimeGeneratorInterface.php', + 'Ramsey\\Uuid\\Generator\\UnixTimeGenerator' => __DIR__ . '/..' . '/ramsey/uuid/src/Generator/UnixTimeGenerator.php', 'Ramsey\\Uuid\\Guid\\Fields' => __DIR__ . '/..' . '/ramsey/uuid/src/Guid/Fields.php', 'Ramsey\\Uuid\\Guid\\Guid' => __DIR__ . '/..' . '/ramsey/uuid/src/Guid/Guid.php', 'Ramsey\\Uuid\\Guid\\GuidBuilder' => __DIR__ . '/..' . '/ramsey/uuid/src/Guid/GuidBuilder.php', @@ -226,8 +231,11 @@ class ComposerStaticInitccba094c0e2d91ef1c96be041076be8f 'Ramsey\\Uuid\\Provider\\Time\\SystemTimeProvider' => __DIR__ . '/..' . '/ramsey/uuid/src/Provider/Time/SystemTimeProvider.php', 'Ramsey\\Uuid\\Rfc4122\\Fields' => __DIR__ . '/..' . '/ramsey/uuid/src/Rfc4122/Fields.php', 'Ramsey\\Uuid\\Rfc4122\\FieldsInterface' => __DIR__ . '/..' . '/ramsey/uuid/src/Rfc4122/FieldsInterface.php', + 'Ramsey\\Uuid\\Rfc4122\\MaxTrait' => __DIR__ . '/..' . '/ramsey/uuid/src/Rfc4122/MaxTrait.php', + 'Ramsey\\Uuid\\Rfc4122\\MaxUuid' => __DIR__ . '/..' . '/ramsey/uuid/src/Rfc4122/MaxUuid.php', 'Ramsey\\Uuid\\Rfc4122\\NilTrait' => __DIR__ . '/..' . '/ramsey/uuid/src/Rfc4122/NilTrait.php', 'Ramsey\\Uuid\\Rfc4122\\NilUuid' => __DIR__ . '/..' . '/ramsey/uuid/src/Rfc4122/NilUuid.php', + 'Ramsey\\Uuid\\Rfc4122\\TimeTrait' => __DIR__ . '/..' . '/ramsey/uuid/src/Rfc4122/TimeTrait.php', 'Ramsey\\Uuid\\Rfc4122\\UuidBuilder' => __DIR__ . '/..' . '/ramsey/uuid/src/Rfc4122/UuidBuilder.php', 'Ramsey\\Uuid\\Rfc4122\\UuidInterface' => __DIR__ . '/..' . '/ramsey/uuid/src/Rfc4122/UuidInterface.php', 'Ramsey\\Uuid\\Rfc4122\\UuidV1' => __DIR__ . '/..' . '/ramsey/uuid/src/Rfc4122/UuidV1.php', @@ -235,6 +243,8 @@ class ComposerStaticInitccba094c0e2d91ef1c96be041076be8f 'Ramsey\\Uuid\\Rfc4122\\UuidV3' => __DIR__ . '/..' . '/ramsey/uuid/src/Rfc4122/UuidV3.php', 'Ramsey\\Uuid\\Rfc4122\\UuidV4' => __DIR__ . '/..' . '/ramsey/uuid/src/Rfc4122/UuidV4.php', 'Ramsey\\Uuid\\Rfc4122\\UuidV5' => __DIR__ . '/..' . '/ramsey/uuid/src/Rfc4122/UuidV5.php', + 'Ramsey\\Uuid\\Rfc4122\\UuidV6' => __DIR__ . '/..' . '/ramsey/uuid/src/Rfc4122/UuidV6.php', + 'Ramsey\\Uuid\\Rfc4122\\UuidV7' => __DIR__ . '/..' . '/ramsey/uuid/src/Rfc4122/UuidV7.php', 'Ramsey\\Uuid\\Rfc4122\\Validator' => __DIR__ . '/..' . '/ramsey/uuid/src/Rfc4122/Validator.php', 'Ramsey\\Uuid\\Rfc4122\\VariantTrait' => __DIR__ . '/..' . '/ramsey/uuid/src/Rfc4122/VariantTrait.php', 'Ramsey\\Uuid\\Rfc4122\\VersionTrait' => __DIR__ . '/..' . '/ramsey/uuid/src/Rfc4122/VersionTrait.php', @@ -257,9 +267,9 @@ class ComposerStaticInitccba094c0e2d91ef1c96be041076be8f public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInitccba094c0e2d91ef1c96be041076be8f::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInitccba094c0e2d91ef1c96be041076be8f::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInitccba094c0e2d91ef1c96be041076be8f::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInitdb58d5b0f2a0a372523d2811c8ae1b5d::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInitdb58d5b0f2a0a372523d2811c8ae1b5d::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInitdb58d5b0f2a0a372523d2811c8ae1b5d::$classMap; }, null, ClassLoader::class); } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/installed.json b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/installed.json index 2054d34..a822a99 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/installed.json +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/installed.json @@ -2,29 +2,29 @@ "packages": [ { "name": "brick/math", - "version": "0.9.3", - "version_normalized": "0.9.3.0", + "version": "0.10.2", + "version_normalized": "0.10.2.0", "source": { "type": "git", "url": "https://github.com/brick/math.git", - "reference": "ca57d18f028f84f777b2168cd1911b0dee2343ae" + "reference": "459f2781e1a08d52ee56b0b1444086e038561e3f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/brick/math/zipball/ca57d18f028f84f777b2168cd1911b0dee2343ae", - "reference": "ca57d18f028f84f777b2168cd1911b0dee2343ae", + "url": "https://api.github.com/repos/brick/math/zipball/459f2781e1a08d52ee56b0b1444086e038561e3f", + "reference": "459f2781e1a08d52ee56b0b1444086e038561e3f", "shasum": "" }, "require": { "ext-json": "*", - "php": "^7.1 || ^8.0" + "php": "^7.4 || ^8.0" }, "require-dev": { "php-coveralls/php-coveralls": "^2.2", - "phpunit/phpunit": "^7.5.15 || ^8.5 || ^9.0", - "vimeo/psalm": "4.9.2" + "phpunit/phpunit": "^9.0", + "vimeo/psalm": "4.25.0" }, - "time": "2021-08-15T20:50:18+00:00", + "time": "2022-08-10T22:54:19+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -49,33 +49,29 @@ ], "support": { "issues": "https://github.com/brick/math/issues", - "source": "https://github.com/brick/math/tree/0.9.3" + "source": "https://github.com/brick/math/tree/0.10.2" }, "funding": [ { "url": "https://github.com/BenMorel", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/brick/math", - "type": "tidelift" } ], "install-path": "../brick/math" }, { "name": "firebase/php-jwt", - "version": "v6.2.0", - "version_normalized": "6.2.0.0", + "version": "v6.3.0", + "version_normalized": "6.3.0.0", "source": { "type": "git", "url": "https://github.com/firebase/php-jwt.git", - "reference": "d28e6df83830252650da4623c78aaaf98fb385f3" + "reference": "018dfc4e1da92ad8a1b90adc4893f476a3b41cb8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/firebase/php-jwt/zipball/d28e6df83830252650da4623c78aaaf98fb385f3", - "reference": "d28e6df83830252650da4623c78aaaf98fb385f3", + "url": "https://api.github.com/repos/firebase/php-jwt/zipball/018dfc4e1da92ad8a1b90adc4893f476a3b41cb8", + "reference": "018dfc4e1da92ad8a1b90adc4893f476a3b41cb8", "shasum": "" }, "require": { @@ -92,7 +88,7 @@ "suggest": { "paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present" }, - "time": "2022-05-13T20:54:50+00:00", + "time": "2022-07-15T16:48:45+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -124,7 +120,7 @@ ], "support": { "issues": "https://github.com/firebase/php-jwt/issues", - "source": "https://github.com/firebase/php-jwt/tree/v6.2.0" + "source": "https://github.com/firebase/php-jwt/tree/v6.3.0" }, "install-path": "../firebase/php-jwt" }, @@ -212,21 +208,21 @@ }, { "name": "ramsey/uuid", - "version": "4.3.1", - "version_normalized": "4.3.1.0", + "version": "4.5.1", + "version_normalized": "4.5.1.0", "source": { "type": "git", "url": "https://github.com/ramsey/uuid.git", - "reference": "8505afd4fea63b81a85d3b7b53ac3cb8dc347c28" + "reference": "a161a26d917604dc6d3aa25100fddf2556e9f35d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ramsey/uuid/zipball/8505afd4fea63b81a85d3b7b53ac3cb8dc347c28", - "reference": "8505afd4fea63b81a85d3b7b53ac3cb8dc347c28", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/a161a26d917604dc6d3aa25100fddf2556e9f35d", + "reference": "a161a26d917604dc6d3aa25100fddf2556e9f35d", "shasum": "" }, "require": { - "brick/math": "^0.8 || ^0.9", + "brick/math": "^0.8.8 || ^0.9 || ^0.10", "ext-ctype": "*", "ext-json": "*", "php": "^8.0", @@ -242,18 +238,18 @@ "doctrine/annotations": "^1.8", "ergebnis/composer-normalize": "^2.15", "mockery/mockery": "^1.3", - "moontoast/math": "^1.1", "paragonie/random-lib": "^2", "php-mock/php-mock": "^2.2", "php-mock/php-mock-mockery": "^1.3", "php-parallel-lint/php-parallel-lint": "^1.1", "phpbench/phpbench": "^1.0", - "phpstan/extension-installer": "^1.0", - "phpstan/phpstan": "^0.12", - "phpstan/phpstan-mockery": "^0.12", - "phpstan/phpstan-phpunit": "^0.12", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-mockery": "^1.1", + "phpstan/phpstan-phpunit": "^1.1", "phpunit/phpunit": "^8.5 || ^9", - "slevomat/coding-standard": "^7.0", + "ramsey/composer-repl": "^1.4", + "slevomat/coding-standard": "^8.4", "squizlabs/php_codesniffer": "^3.5", "vimeo/psalm": "^4.9" }, @@ -265,7 +261,7 @@ "paragonie/random-lib": "Provides RandomLib for use with the RandomLibAdapter", "ramsey/uuid-doctrine": "Allows the use of Ramsey\\Uuid\\Uuid as Doctrine field type." }, - "time": "2022-03-27T21:42:02+00:00", + "time": "2022-09-16T03:22:46+00:00", "type": "library", "extra": { "captainhook": { @@ -293,7 +289,7 @@ ], "support": { "issues": "https://github.com/ramsey/uuid/issues", - "source": "https://github.com/ramsey/uuid/tree/4.3.1" + "source": "https://github.com/ramsey/uuid/tree/4.5.1" }, "funding": [ { @@ -309,27 +305,27 @@ }, { "name": "symfony/polyfill-php81", - "version": "v1.25.0", - "version_normalized": "1.25.0.0", + "version": "v1.26.0", + "version_normalized": "1.26.0.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php81.git", - "reference": "5de4ba2d41b15f9bd0e19b2ab9674135813ec98f" + "reference": "13f6d1271c663dc5ae9fb843a8f16521db7687a1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/5de4ba2d41b15f9bd0e19b2ab9674135813ec98f", - "reference": "5de4ba2d41b15f9bd0e19b2ab9674135813ec98f", + "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/13f6d1271c663dc5ae9fb843a8f16521db7687a1", + "reference": "13f6d1271c663dc5ae9fb843a8f16521db7687a1", "shasum": "" }, "require": { "php": ">=7.1" }, - "time": "2021-09-13T13:58:11+00:00", + "time": "2022-05-24T11:49:31+00:00", "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.26-dev" }, "thanks": { "name": "symfony/polyfill", @@ -371,7 +367,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php81/tree/v1.25.0" + "source": "https://github.com/symfony/polyfill-php81/tree/v1.26.0" }, "funding": [ { diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/installed.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/installed.php index 448fc26..80f2aa5 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/installed.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/composer/installed.php @@ -1,73 +1,73 @@ array( - 'pretty_version' => '1.0.4', - 'version' => '1.0.4.0', + 'name' => 'mynaparrot/plugnmeet-sdk', + 'pretty_version' => '1.0.6', + 'version' => '1.0.6.0', + 'reference' => NULL, 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => NULL, - 'name' => 'mynaparrot/plugnmeet-sdk', 'dev' => false, ), 'versions' => array( 'brick/math' => array( - 'pretty_version' => '0.9.3', - 'version' => '0.9.3.0', + 'pretty_version' => '0.10.2', + 'version' => '0.10.2.0', + 'reference' => '459f2781e1a08d52ee56b0b1444086e038561e3f', 'type' => 'library', 'install_path' => __DIR__ . '/../brick/math', 'aliases' => array(), - 'reference' => 'ca57d18f028f84f777b2168cd1911b0dee2343ae', 'dev_requirement' => false, ), 'firebase/php-jwt' => array( - 'pretty_version' => 'v6.2.0', - 'version' => '6.2.0.0', + 'pretty_version' => 'v6.3.0', + 'version' => '6.3.0.0', + 'reference' => '018dfc4e1da92ad8a1b90adc4893f476a3b41cb8', 'type' => 'library', 'install_path' => __DIR__ . '/../firebase/php-jwt', 'aliases' => array(), - 'reference' => 'd28e6df83830252650da4623c78aaaf98fb385f3', 'dev_requirement' => false, ), 'mynaparrot/plugnmeet-sdk' => array( - 'pretty_version' => '1.0.4', - 'version' => '1.0.4.0', + 'pretty_version' => '1.0.6', + 'version' => '1.0.6.0', + 'reference' => NULL, 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => NULL, 'dev_requirement' => false, ), 'ramsey/collection' => array( 'pretty_version' => '1.2.2', 'version' => '1.2.2.0', + 'reference' => 'cccc74ee5e328031b15640b51056ee8d3bb66c0a', 'type' => 'library', 'install_path' => __DIR__ . '/../ramsey/collection', 'aliases' => array(), - 'reference' => 'cccc74ee5e328031b15640b51056ee8d3bb66c0a', 'dev_requirement' => false, ), 'ramsey/uuid' => array( - 'pretty_version' => '4.3.1', - 'version' => '4.3.1.0', + 'pretty_version' => '4.5.1', + 'version' => '4.5.1.0', + 'reference' => 'a161a26d917604dc6d3aa25100fddf2556e9f35d', 'type' => 'library', 'install_path' => __DIR__ . '/../ramsey/uuid', 'aliases' => array(), - 'reference' => '8505afd4fea63b81a85d3b7b53ac3cb8dc347c28', 'dev_requirement' => false, ), 'rhumsaa/uuid' => array( 'dev_requirement' => false, 'replaced' => array( - 0 => '4.3.1', + 0 => '4.5.1', ), ), 'symfony/polyfill-php81' => array( - 'pretty_version' => 'v1.25.0', - 'version' => '1.25.0.0', + 'pretty_version' => 'v1.26.0', + 'version' => '1.26.0.0', + 'reference' => '13f6d1271c663dc5ae9fb843a8f16521db7687a1', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-php81', 'aliases' => array(), - 'reference' => '5de4ba2d41b15f9bd0e19b2ab9674135813ec98f', 'dev_requirement' => false, ), ), diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/firebase/php-jwt/README.md b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/firebase/php-jwt/README.md index 42e8b6d..fed1e95 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/firebase/php-jwt/README.md +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/firebase/php-jwt/README.md @@ -261,6 +261,16 @@ $decoded = json_decode(json_encode($decoded), true); Changelog --------- +#### 6.3.0 / 2022-07-15 + + - Added ES256 support to JWK parsing ([#399](https://github.com/firebase/php-jwt/pull/399)) + - Fixed potential caching error in `CachedKeySet` by caching jwks as strings ([#435](https://github.com/firebase/php-jwt/pull/435)) + +#### 6.2.0 / 2022-05-14 + + - Added `CachedKeySet` ([#397](https://github.com/firebase/php-jwt/pull/397)) + - Added `$defaultAlg` parameter to `JWT::parseKey` and `JWT::parseKeySet` ([#426](https://github.com/firebase/php-jwt/pull/426)). + #### 6.1.0 / 2022-03-23 - Drop support for PHP 5.3, 5.4, 5.5, 5.6, and 7.0 diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/firebase/php-jwt/src/CachedKeySet.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/firebase/php-jwt/src/CachedKeySet.php index f1580c9..e2215b3 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/firebase/php-jwt/src/CachedKeySet.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/firebase/php-jwt/src/CachedKeySet.php @@ -132,13 +132,13 @@ public function offsetUnset($offset): void private function keyIdExists(string $keyId): bool { - $keySetToCache = null; if (null === $this->keySet) { $item = $this->getCacheItem(); // Try to load keys from cache if ($item->isHit()) { // item found! Return it - $this->keySet = $item->get(); + $jwks = $item->get(); + $this->keySet = JWK::parseKeySet(json_decode($jwks, true), $this->defaultAlg); } } @@ -148,17 +148,15 @@ private function keyIdExists(string $keyId): bool } $request = $this->httpFactory->createRequest('get', $this->jwksUri); $jwksResponse = $this->httpClient->sendRequest($request); - $jwks = json_decode((string) $jwksResponse->getBody(), true); - $this->keySet = $keySetToCache = JWK::parseKeySet($jwks, $this->defaultAlg); + $jwks = (string) $jwksResponse->getBody(); + $this->keySet = JWK::parseKeySet(json_decode($jwks, true), $this->defaultAlg); if (!isset($this->keySet[$keyId])) { return false; } - } - if ($keySetToCache) { $item = $this->getCacheItem(); - $item->set($keySetToCache); + $item->set($jwks); if ($this->expiresAfter) { $item->expiresAfter($this->expiresAfter); } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/firebase/php-jwt/src/JWK.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/firebase/php-jwt/src/JWK.php index 7f22570..15631ec 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/firebase/php-jwt/src/JWK.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/firebase/php-jwt/src/JWK.php @@ -20,6 +20,16 @@ */ class JWK { + private const OID = '1.2.840.10045.2.1'; + private const ASN1_OBJECT_IDENTIFIER = 0x06; + private const ASN1_SEQUENCE = 0x10; // also defined in JWT + private const ASN1_BIT_STRING = 0x03; + private const EC_CURVES = [ + 'P-256' => '1.2.840.10045.3.1.7', // Len: 64 + // 'P-384' => '1.3.132.0.34', // Len: 96 (not yet supported) + // 'P-521' => '1.3.132.0.35', // Len: 132 (not supported) + ]; + /** * Parse a set of JWK keys * @@ -114,6 +124,26 @@ public static function parseKey(array $jwk, string $defaultAlg = null): ?Key ); } return new Key($publicKey, $jwk['alg']); + case 'EC': + if (isset($jwk['d'])) { + // The key is actually a private key + throw new UnexpectedValueException('Key data must be for a public key'); + } + + if (empty($jwk['crv'])) { + throw new UnexpectedValueException('crv not set'); + } + + if (!isset(self::EC_CURVES[$jwk['crv']])) { + throw new DomainException('Unrecognised or unsupported EC curve'); + } + + if (empty($jwk['x']) || empty($jwk['y'])) { + throw new UnexpectedValueException('x and y not set'); + } + + $publicKey = self::createPemFromCrvAndXYCoordinates($jwk['crv'], $jwk['x'], $jwk['y']); + return new Key($publicKey, $jwk['alg']); default: // Currently only RSA is supported break; @@ -122,6 +152,45 @@ public static function parseKey(array $jwk, string $defaultAlg = null): ?Key return null; } + /** + * Converts the EC JWK values to pem format. + * + * @param string $crv The EC curve (only P-256 is supported) + * @param string $x The EC x-coordinate + * @param string $y The EC y-coordinate + * + * @return string + */ + private static function createPemFromCrvAndXYCoordinates(string $crv, string $x, string $y): string + { + $pem = + self::encodeDER( + self::ASN1_SEQUENCE, + self::encodeDER( + self::ASN1_SEQUENCE, + self::encodeDER( + self::ASN1_OBJECT_IDENTIFIER, + self::encodeOID(self::OID) + ) + . self::encodeDER( + self::ASN1_OBJECT_IDENTIFIER, + self::encodeOID(self::EC_CURVES[$crv]) + ) + ) . + self::encodeDER( + self::ASN1_BIT_STRING, + \chr(0x00) . \chr(0x04) + . JWT::urlsafeB64Decode($x) + . JWT::urlsafeB64Decode($y) + ) + ); + + return sprintf( + "-----BEGIN PUBLIC KEY-----\n%s\n-----END PUBLIC KEY-----\n", + wordwrap(base64_encode($pem), 64, "\n", true) + ); + } + /** * Create a public key represented in PEM format from RSA modulus and exponent information * @@ -162,11 +231,9 @@ private static function createPemFromModulusAndExponent( $rsaOID . $rsaPublicKey ); - $rsaPublicKey = "-----BEGIN PUBLIC KEY-----\r\n" . + return "-----BEGIN PUBLIC KEY-----\r\n" . \chunk_split(\base64_encode($rsaPublicKey), 64) . '-----END PUBLIC KEY-----'; - - return $rsaPublicKey; } /** @@ -188,4 +255,68 @@ private static function encodeLength(int $length): string return \pack('Ca*', 0x80 | \strlen($temp), $temp); } + + /** + * Encodes a value into a DER object. + * Also defined in Firebase\JWT\JWT + * + * @param int $type DER tag + * @param string $value the value to encode + * @return string the encoded object + */ + private static function encodeDER(int $type, string $value): string + { + $tag_header = 0; + if ($type === self::ASN1_SEQUENCE) { + $tag_header |= 0x20; + } + + // Type + $der = \chr($tag_header | $type); + + // Length + $der .= \chr(\strlen($value)); + + return $der . $value; + } + + /** + * Encodes a string into a DER-encoded OID. + * + * @param string $oid the OID string + * @return string the binary DER-encoded OID + */ + private static function encodeOID(string $oid): string + { + $octets = explode('.', $oid); + + // Get the first octet + $first = (int) array_shift($octets); + $second = (int) array_shift($octets); + $oid = \chr($first * 40 + $second); + + // Iterate over subsequent octets + foreach ($octets as $octet) { + if ($octet == 0) { + $oid .= \chr(0x00); + continue; + } + $bin = ''; + + while ($octet) { + $bin .= \chr(0x80 | ($octet & 0x7f)); + $octet >>= 7; + } + $bin[0] = $bin[0] & \chr(0x7f); + + // Convert to big endian if necessary + if (pack('V', 65534) == pack('L', 65534)) { + $oid .= strrev($bin); + } else { + $oid .= $bin; + } + } + + return $oid; + } } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/firebase/php-jwt/src/JWT.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/firebase/php-jwt/src/JWT.php index 9011292..9964073 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/firebase/php-jwt/src/JWT.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/firebase/php-jwt/src/JWT.php @@ -98,7 +98,7 @@ public static function decode( throw new InvalidArgumentException('Key may not be empty'); } $tks = \explode('.', $jwt); - if (\count($tks) != 3) { + if (\count($tks) !== 3) { throw new UnexpectedValueException('Wrong number of segments'); } list($headb64, $bodyb64, $cryptob64) = $tks; @@ -136,7 +136,7 @@ public static function decode( // OpenSSL expects an ASN.1 DER sequence for ES256/ES384 signatures $sig = self::signatureToDER($sig); } - if (!self::verify("$headb64.$bodyb64", $sig, $key->getKeyMaterial(), $header->alg)) { + if (!self::verify("${headb64}.${bodyb64}", $sig, $key->getKeyMaterial(), $header->alg)) { throw new SignatureInvalidException('Signature verification failed'); } @@ -293,7 +293,8 @@ private static function verify( $success = \openssl_verify($msg, $signature, $keyMaterial, $algorithm); // @phpstan-ignore-line if ($success === 1) { return true; - } elseif ($success === 0) { + } + if ($success === 0) { return false; } // returns 1 on success, 0 on failure, -1 on error. @@ -301,20 +302,20 @@ private static function verify( 'OpenSSL error: ' . \openssl_error_string() ); case 'sodium_crypto': - if (!\function_exists('sodium_crypto_sign_verify_detached')) { - throw new DomainException('libsodium is not available'); - } - if (!\is_string($keyMaterial)) { - throw new InvalidArgumentException('key must be a string when using EdDSA'); - } - try { - // The last non-empty line is used as the key. - $lines = array_filter(explode("\n", $keyMaterial)); - $key = base64_decode((string) end($lines)); - return sodium_crypto_sign_verify_detached($signature, $msg, $key); - } catch (Exception $e) { - throw new DomainException($e->getMessage(), 0, $e); - } + if (!\function_exists('sodium_crypto_sign_verify_detached')) { + throw new DomainException('libsodium is not available'); + } + if (!\is_string($keyMaterial)) { + throw new InvalidArgumentException('key must be a string when using EdDSA'); + } + try { + // The last non-empty line is used as the key. + $lines = array_filter(explode("\n", $keyMaterial)); + $key = base64_decode((string) end($lines)); + return sodium_crypto_sign_verify_detached($signature, $msg, $key); + } catch (Exception $e) { + throw new DomainException($e->getMessage(), 0, $e); + } case 'hash_hmac': default: if (!\is_string($keyMaterial)) { @@ -510,7 +511,7 @@ private static function signatureToDER(string $sig): string { // Separate the signature into r-value and s-value $length = max(1, (int) (\strlen($sig) / 2)); - list($r, $s) = \str_split($sig, $length > 0 ? $length : 1); + list($r, $s) = \str_split($sig, $length); // Trim leading zeros $r = \ltrim($r, "\x00"); @@ -610,7 +611,7 @@ private static function readDER(string $der, int $offset = 0): array } // Value - if ($type == self::ASN1_BIT_STRING) { + if ($type === self::ASN1_BIT_STRING) { $pos++; // Skip the first contents octet (padding indicator) $data = \substr($der, $pos, $len - 1); $pos += $len - 1; diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/README.md b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/README.md index 97e81a5..1862569 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/README.md +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/README.md @@ -8,9 +8,9 @@ Source Code Download Package PHP Programming Language - Read License - Build Status - Codecov Code Coverage + Read License + Build Status + Codecov Code Coverage Psalm Type Coverage

@@ -38,7 +38,7 @@ composer require ramsey/uuid See the documentation for a thorough upgrade guide: -* [Upgrading ramsey/uuid Version 3 to 4](https://uuid.ramsey.dev/en/latest/upgrading/3-to-4.html) +* [Upgrading ramsey/uuid Version 3 to 4](https://uuid.ramsey.dev/en/stable/upgrading/3-to-4.html) ## Documentation @@ -74,10 +74,10 @@ licensed for use under the MIT License (MIT). Please see [LICENSE][] for more information. [rfc4122]: http://tools.ietf.org/html/rfc4122 -[conduct]: https://github.com/ramsey/uuid/blob/main/CODE_OF_CONDUCT.md +[conduct]: https://github.com/ramsey/uuid/blob/4.x/CODE_OF_CONDUCT.md [javauuid]: http://docs.oracle.com/javase/6/docs/api/java/util/UUID.html [pyuuid]: http://docs.python.org/3/library/uuid.html [composer]: http://getcomposer.org/ -[contributing.md]: https://github.com/ramsey/uuid/blob/main/CONTRIBUTING.md -[security.md]: https://github.com/ramsey/uuid/blob/main/SECURITY.md -[license]: https://github.com/ramsey/uuid/blob/main/LICENSE +[contributing.md]: https://github.com/ramsey/uuid/blob/4.x/CONTRIBUTING.md +[security.md]: https://github.com/ramsey/uuid/blob/4.x/SECURITY.md +[license]: https://github.com/ramsey/uuid/blob/4.x/LICENSE diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/composer.json b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/composer.json index 112fabf..9653cad 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/composer.json +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/composer.json @@ -12,7 +12,7 @@ "php": "^8.0", "ext-ctype": "*", "ext-json": "*", - "brick/math": "^0.8 || ^0.9", + "brick/math": "^0.8.8 || ^0.9 || ^0.10", "ramsey/collection": "^1.0" }, "require-dev": { @@ -22,18 +22,18 @@ "doctrine/annotations": "^1.8", "ergebnis/composer-normalize": "^2.15", "mockery/mockery": "^1.3", - "moontoast/math": "^1.1", "paragonie/random-lib": "^2", "php-mock/php-mock": "^2.2", "php-mock/php-mock-mockery": "^1.3", "php-parallel-lint/php-parallel-lint": "^1.1", "phpbench/phpbench": "^1.0", - "phpstan/extension-installer": "^1.0", - "phpstan/phpstan": "^0.12", - "phpstan/phpstan-mockery": "^0.12", - "phpstan/phpstan-phpunit": "^0.12", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-mockery": "^1.1", + "phpstan/phpstan-phpunit": "^1.1", "phpunit/phpunit": "^8.5 || ^9", - "slevomat/coding-standard": "^7.0", + "ramsey/composer-repl": "^1.4", + "slevomat/coding-standard": "^8.4", "squizlabs/php_codesniffer": "^3.5", "vimeo/psalm": "^4.9" }, @@ -70,7 +70,8 @@ "captainhook/plugin-composer": true, "ergebnis/composer-normalize": true, "phpstan/extension-installer": true, - "dealerdirect/phpcodesniffer-composer-installer": true + "dealerdirect/phpcodesniffer-composer-installer": true, + "ramsey/composer-repl": true }, "sort-packages": true }, diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Builder/DegradedUuidBuilder.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Builder/DegradedUuidBuilder.php index 23931e4..20b3842 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Builder/DegradedUuidBuilder.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Builder/DegradedUuidBuilder.php @@ -30,15 +30,7 @@ */ class DegradedUuidBuilder implements UuidBuilderInterface { - /** - * @var NumberConverterInterface - */ - private $numberConverter; - - /** - * @var TimeConverterInterface - */ - private $timeConverter; + private TimeConverterInterface $timeConverter; /** * @param NumberConverterInterface $numberConverter The number converter to @@ -47,10 +39,9 @@ class DegradedUuidBuilder implements UuidBuilderInterface * for converting timestamps extracted from a UUID to Unix timestamps */ public function __construct( - NumberConverterInterface $numberConverter, + private NumberConverterInterface $numberConverter, ?TimeConverterInterface $timeConverter = null ) { - $this->numberConverter = $numberConverter; $this->timeConverter = $timeConverter ?: new DegradedTimeConverter(); } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Builder/FallbackBuilder.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Builder/FallbackBuilder.php index 8ab438a..ba5f31f 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Builder/FallbackBuilder.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Builder/FallbackBuilder.php @@ -27,17 +27,11 @@ */ class FallbackBuilder implements UuidBuilderInterface { - /** - * @var iterable - */ - private $builders; - /** * @param iterable $builders An array of UUID builders */ - public function __construct(iterable $builders) + public function __construct(private iterable $builders) { - $this->builders = $builders; } /** diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Codec/StringCodec.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Codec/StringCodec.php index 58c9f58..4b6e4e5 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Codec/StringCodec.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Codec/StringCodec.php @@ -36,19 +36,13 @@ */ class StringCodec implements CodecInterface { - /** - * @var UuidBuilderInterface - */ - private $builder; - /** * Constructs a StringCodec * * @param UuidBuilderInterface $builder The builder to use when encoding UUIDs */ - public function __construct(UuidBuilderInterface $builder) + public function __construct(private UuidBuilderInterface $builder) { - $this->builder = $builder; } public function encode(UuidInterface $uuid): string diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Converter/Number/BigNumberConverter.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Converter/Number/BigNumberConverter.php index fef63fd..99b88b3 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Converter/Number/BigNumberConverter.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Converter/Number/BigNumberConverter.php @@ -27,10 +27,7 @@ */ class BigNumberConverter implements NumberConverterInterface { - /** - * @var NumberConverterInterface - */ - private $converter; + private NumberConverterInterface $converter; public function __construct() { diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Converter/Number/GenericNumberConverter.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Converter/Number/GenericNumberConverter.php index 501eac0..043c3c4 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Converter/Number/GenericNumberConverter.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Converter/Number/GenericNumberConverter.php @@ -26,14 +26,8 @@ */ class GenericNumberConverter implements NumberConverterInterface { - /** - * @var CalculatorInterface - */ - private $calculator; - - public function __construct(CalculatorInterface $calculator) + public function __construct(private CalculatorInterface $calculator) { - $this->calculator = $calculator; } /** diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Converter/Time/BigNumberTimeConverter.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Converter/Time/BigNumberTimeConverter.php index 7390dad..b6bca9e 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Converter/Time/BigNumberTimeConverter.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Converter/Time/BigNumberTimeConverter.php @@ -29,10 +29,7 @@ */ class BigNumberTimeConverter implements TimeConverterInterface { - /** - * @var TimeConverterInterface - */ - private $converter; + private TimeConverterInterface $converter; public function __construct() { diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Converter/Time/GenericTimeConverter.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Converter/Time/GenericTimeConverter.php index a8aa64b..f6b60ab 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Converter/Time/GenericTimeConverter.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Converter/Time/GenericTimeConverter.php @@ -50,14 +50,8 @@ class GenericTimeConverter implements TimeConverterInterface */ private const MICROSECOND_INTERVALS = '10'; - /** - * @var CalculatorInterface - */ - private $calculator; - - public function __construct(CalculatorInterface $calculator) + public function __construct(private CalculatorInterface $calculator) { - $this->calculator = $calculator; } public function calculateTime(string $seconds, string $microseconds): Hexadecimal diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Converter/Time/PhpTimeConverter.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Converter/Time/PhpTimeConverter.php index 538d2f2..66009f1 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Converter/Time/PhpTimeConverter.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Converter/Time/PhpTimeConverter.php @@ -58,20 +58,9 @@ class PhpTimeConverter implements TimeConverterInterface */ private const MICROSECOND_INTERVALS = 10; - /** - * @var CalculatorInterface - */ - private $calculator; - - /** - * @var TimeConverterInterface - */ - private $fallbackConverter; - - /** - * @var int - */ - private $phpPrecision; + private int $phpPrecision; + private CalculatorInterface $calculator; + private TimeConverterInterface $fallbackConverter; public function __construct( ?CalculatorInterface $calculator = null, @@ -132,11 +121,11 @@ public function convertTime(Hexadecimal $uuidTimestamp): Time } /** - * @param int|float $time The time to split into seconds and microseconds + * @param float|int $time The time to split into seconds and microseconds * * @return string[] */ - private function splitTime($time): array + private function splitTime(float | int $time): array { $split = explode('.', (string) $time, 2); diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Converter/Time/UnixTimeConverter.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Converter/Time/UnixTimeConverter.php new file mode 100644 index 0000000..4d6d0a8 --- /dev/null +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Converter/Time/UnixTimeConverter.php @@ -0,0 +1,90 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Converter\Time; + +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Math\CalculatorInterface; +use Ramsey\Uuid\Math\RoundingMode; +use Ramsey\Uuid\Type\Hexadecimal; +use Ramsey\Uuid\Type\Integer as IntegerObject; +use Ramsey\Uuid\Type\Time; + +use function explode; +use function str_pad; + +use const STR_PAD_LEFT; + +/** + * UnixTimeConverter converts Unix Epoch timestamps to/from hexadecimal values + * consisting of milliseconds elapsed since the Unix Epoch + * + * @psalm-immutable + */ +class UnixTimeConverter implements TimeConverterInterface +{ + private const MILLISECONDS = 1000; + + public function __construct(private CalculatorInterface $calculator) + { + } + + public function calculateTime(string $seconds, string $microseconds): Hexadecimal + { + $timestamp = new Time($seconds, $microseconds); + + // Convert the seconds into milliseconds. + $sec = $this->calculator->multiply( + $timestamp->getSeconds(), + new IntegerObject(self::MILLISECONDS), + ); + + // Convert the microseconds into milliseconds; the scale is zero because + // we need to discard the fractional part. + $usec = $this->calculator->divide( + RoundingMode::DOWN, // Always round down to stay in the previous millisecond. + 0, + $timestamp->getMicroseconds(), + new IntegerObject(self::MILLISECONDS), + ); + + /** @var IntegerObject $unixTime */ + $unixTime = $this->calculator->add($sec, $usec); + + $unixTimeHex = str_pad( + $this->calculator->toHexadecimal($unixTime)->toString(), + 12, + '0', + STR_PAD_LEFT + ); + + return new Hexadecimal($unixTimeHex); + } + + public function convertTime(Hexadecimal $uuidTimestamp): Time + { + $milliseconds = $this->calculator->toInteger($uuidTimestamp); + + $unixTimestamp = $this->calculator->divide( + RoundingMode::HALF_UP, + 6, + $milliseconds, + new IntegerObject(self::MILLISECONDS) + ); + + $split = explode('.', (string) $unixTimestamp, 2); + + return new Time($split[0], $split[1] ?? '0'); + } +} diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/DeprecatedUuidInterface.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/DeprecatedUuidInterface.php index ed6d9de..ac01a79 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/DeprecatedUuidInterface.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/DeprecatedUuidInterface.php @@ -18,8 +18,7 @@ use Ramsey\Uuid\Converter\NumberConverterInterface; /** - * This interface encapsulates deprecated methods for ramsey/uuid; this - * interface and its methods will be removed in ramsey/uuid 5.0.0. + * This interface encapsulates deprecated methods for ramsey/uuid * * @psalm-immutable */ @@ -123,12 +122,6 @@ public function getTimeMidHex(): string; */ public function getTimestampHex(): string; - /** - * @deprecated In ramsey/uuid version 5.0.0, this will be removed from this - * interface. It has moved to {@see \Ramsey\Uuid\Rfc4122\UuidInterface::getUrn()}. - */ - public function getUrn(): string; - /** * @deprecated Use {@see UuidInterface::getFields()} to get a * {@see FieldsInterface} instance. If it is a diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/DeprecatedUuidMethodsTrait.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/DeprecatedUuidMethodsTrait.php index 3428295..d3fbb0c 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/DeprecatedUuidMethodsTrait.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/DeprecatedUuidMethodsTrait.php @@ -17,10 +17,8 @@ use DateTimeImmutable; use DateTimeInterface; use Ramsey\Uuid\Converter\NumberConverterInterface; -use Ramsey\Uuid\Converter\TimeConverterInterface; use Ramsey\Uuid\Exception\DateTimeException; use Ramsey\Uuid\Exception\UnsupportedOperationException; -use Ramsey\Uuid\Rfc4122\FieldsInterface as Rfc4122FieldsInterface; use Throwable; use function str_pad; @@ -32,29 +30,17 @@ * This trait encapsulates deprecated methods for ramsey/uuid; this trait and * its methods will be removed in ramsey/uuid 5.0.0. * + * @deprecated This trait and its methods will be removed in ramsey/uuid 5.0.0. + * * @psalm-immutable */ trait DeprecatedUuidMethodsTrait { - /** - * @var Rfc4122FieldsInterface - */ - protected $fields; - - /** - * @var NumberConverterInterface - */ - protected $numberConverter; - - /** - * @var TimeConverterInterface - */ - protected $timeConverter; - /** * @deprecated Use {@see UuidInterface::getFields()} to get a - * {@see FieldsInterface} instance. If it is a {@see Rfc4122FieldsInterface} - * instance, you may call {@see Rfc4122FieldsInterface::getClockSeqHiAndReserved()} + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeqHiAndReserved()} * and use the arbitrary-precision math library of your choice to * convert it to a string integer. */ @@ -65,8 +51,9 @@ public function getClockSeqHiAndReserved(): string /** * @deprecated Use {@see UuidInterface::getFields()} to get a - * {@see FieldsInterface} instance. If it is a {@see Rfc4122FieldsInterface} - * instance, you may call {@see Rfc4122FieldsInterface::getClockSeqHiAndReserved()}. + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeqHiAndReserved()}. */ public function getClockSeqHiAndReservedHex(): string { @@ -75,8 +62,9 @@ public function getClockSeqHiAndReservedHex(): string /** * @deprecated Use {@see UuidInterface::getFields()} to get a - * {@see FieldsInterface} instance. If it is a {@see Rfc4122FieldsInterface} - * instance, you may call {@see Rfc4122FieldsInterface::getClockSeqLow()} + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeqLow()} * and use the arbitrary-precision math library of your choice to * convert it to a string integer. */ @@ -87,8 +75,9 @@ public function getClockSeqLow(): string /** * @deprecated Use {@see UuidInterface::getFields()} to get a - * {@see FieldsInterface} instance. If it is a {@see Rfc4122FieldsInterface} - * instance, you may call {@see Rfc4122FieldsInterface::getClockSeqLow()}. + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeqLow()}. */ public function getClockSeqLowHex(): string { @@ -97,8 +86,9 @@ public function getClockSeqLowHex(): string /** * @deprecated Use {@see UuidInterface::getFields()} to get a - * {@see FieldsInterface} instance. If it is a {@see Rfc4122FieldsInterface} - * instance, you may call {@see Rfc4122FieldsInterface::getClockSeq()} + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeq()} * and use the arbitrary-precision math library of your choice to * convert it to a string integer. */ @@ -109,8 +99,9 @@ public function getClockSequence(): string /** * @deprecated Use {@see UuidInterface::getFields()} to get a - * {@see FieldsInterface} instance. If it is a {@see Rfc4122FieldsInterface} - * instance, you may call {@see Rfc4122FieldsInterface::getClockSeq()}. + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getClockSeq()}. */ public function getClockSequenceHex(): string { @@ -157,7 +148,7 @@ public function getDateTime(): DateTimeInterface /** * @deprecated Use {@see UuidInterface::getFields()} to get a - * {@see FieldsInterface} instance. + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. * * @return string[] */ @@ -219,10 +210,11 @@ public function getMostSignificantBitsHex(): string /** * @deprecated Use {@see UuidInterface::getFields()} to get a - * {@see FieldsInterface} instance. If it is a {@see Rfc4122FieldsInterface} - * instance, you may call {@see Rfc4122FieldsInterface::getNode()} - * and use the arbitrary-precision math library of your choice to - * convert it to a string integer. + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getNode()} and use the + * arbitrary-precision math library of your choice to convert it to a + * string integer. */ public function getNode(): string { @@ -231,8 +223,9 @@ public function getNode(): string /** * @deprecated Use {@see UuidInterface::getFields()} to get a - * {@see FieldsInterface} instance. If it is a {@see Rfc4122FieldsInterface} - * instance, you may call {@see Rfc4122FieldsInterface::getNode()}. + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getNode()}. */ public function getNodeHex(): string { @@ -241,8 +234,9 @@ public function getNodeHex(): string /** * @deprecated Use {@see UuidInterface::getFields()} to get a - * {@see FieldsInterface} instance. If it is a {@see Rfc4122FieldsInterface} - * instance, you may call {@see Rfc4122FieldsInterface::getTimeHiAndVersion()} + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeHiAndVersion()} * and use the arbitrary-precision math library of your choice to * convert it to a string integer. */ @@ -253,8 +247,9 @@ public function getTimeHiAndVersion(): string /** * @deprecated Use {@see UuidInterface::getFields()} to get a - * {@see FieldsInterface} instance. If it is a {@see Rfc4122FieldsInterface} - * instance, you may call {@see Rfc4122FieldsInterface::getTimeHiAndVersion()}. + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeHiAndVersion()}. */ public function getTimeHiAndVersionHex(): string { @@ -263,10 +258,11 @@ public function getTimeHiAndVersionHex(): string /** * @deprecated Use {@see UuidInterface::getFields()} to get a - * {@see FieldsInterface} instance. If it is a {@see Rfc4122FieldsInterface} - * instance, you may call {@see Rfc4122FieldsInterface::getTimeLow()} - * and use the arbitrary-precision math library of your choice to - * convert it to a string integer. + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeLow()} and use the + * arbitrary-precision math library of your choice to convert it to a + * string integer. */ public function getTimeLow(): string { @@ -275,8 +271,9 @@ public function getTimeLow(): string /** * @deprecated Use {@see UuidInterface::getFields()} to get a - * {@see FieldsInterface} instance. If it is a {@see Rfc4122FieldsInterface} - * instance, you may call {@see Rfc4122FieldsInterface::getTimeLow()}. + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeLow()}. */ public function getTimeLowHex(): string { @@ -285,10 +282,11 @@ public function getTimeLowHex(): string /** * @deprecated Use {@see UuidInterface::getFields()} to get a - * {@see FieldsInterface} instance. If it is a {@see Rfc4122FieldsInterface} - * instance, you may call {@see Rfc4122FieldsInterface::getTimeMid()} - * and use the arbitrary-precision math library of your choice to - * convert it to a string integer. + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeMid()} and use the + * arbitrary-precision math library of your choice to convert it to a + * string integer. */ public function getTimeMid(): string { @@ -297,8 +295,9 @@ public function getTimeMid(): string /** * @deprecated Use {@see UuidInterface::getFields()} to get a - * {@see FieldsInterface} instance. If it is a {@see Rfc4122FieldsInterface} - * instance, you may call {@see Rfc4122FieldsInterface::getTimeMid()}. + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimeMid()}. */ public function getTimeMidHex(): string { @@ -307,10 +306,11 @@ public function getTimeMidHex(): string /** * @deprecated Use {@see UuidInterface::getFields()} to get a - * {@see FieldsInterface} instance. If it is a {@see Rfc4122FieldsInterface} - * instance, you may call {@see Rfc4122FieldsInterface::getTimestamp()} - * and use the arbitrary-precision math library of your choice to - * convert it to a string integer. + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimestamp()} and use + * the arbitrary-precision math library of your choice to convert it to + * a string integer. */ public function getTimestamp(): string { @@ -323,8 +323,9 @@ public function getTimestamp(): string /** * @deprecated Use {@see UuidInterface::getFields()} to get a - * {@see FieldsInterface} instance. If it is a {@see Rfc4122FieldsInterface} - * instance, you may call {@see Rfc4122FieldsInterface::getTimestamp()}. + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call + * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getTimestamp()}. */ public function getTimestampHex(): string { @@ -335,20 +336,9 @@ public function getTimestampHex(): string return $this->fields->getTimestamp()->toString(); } - /** - * @deprecated This has moved to {@see Rfc4122FieldsInterface::getUrn()} and - * is available on {@see \Ramsey\Uuid\Rfc4122\UuidV1}, - * {@see \Ramsey\Uuid\Rfc4122\UuidV3}, {@see \Ramsey\Uuid\Rfc4122\UuidV4}, - * and {@see \Ramsey\Uuid\Rfc4122\UuidV5}. - */ - public function getUrn(): string - { - return 'urn:uuid:' . $this->toString(); - } - /** * @deprecated Use {@see UuidInterface::getFields()} to get a - * {@see FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getVariant()}. */ @@ -359,7 +349,7 @@ public function getVariant(): ?int /** * @deprecated Use {@see UuidInterface::getFields()} to get a - * {@see FieldsInterface} instance. If it is a + * {@see \Ramsey\Uuid\Fields\FieldsInterface} instance. If it is a * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface} instance, you may call * {@see \Ramsey\Uuid\Rfc4122\FieldsInterface::getVersion()}. */ diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/FeatureSet.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/FeatureSet.php index 6683666..6c8ccb0 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/FeatureSet.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/FeatureSet.php @@ -23,6 +23,7 @@ use Ramsey\Uuid\Converter\NumberConverterInterface; use Ramsey\Uuid\Converter\Time\GenericTimeConverter; use Ramsey\Uuid\Converter\Time\PhpTimeConverter; +use Ramsey\Uuid\Converter\Time\UnixTimeConverter; use Ramsey\Uuid\Converter\TimeConverterInterface; use Ramsey\Uuid\Generator\DceSecurityGenerator; use Ramsey\Uuid\Generator\DceSecurityGeneratorInterface; @@ -35,6 +36,7 @@ use Ramsey\Uuid\Generator\RandomGeneratorInterface; use Ramsey\Uuid\Generator\TimeGeneratorFactory; use Ramsey\Uuid\Generator\TimeGeneratorInterface; +use Ramsey\Uuid\Generator\UnixTimeGenerator; use Ramsey\Uuid\Guid\GuidBuilder; use Ramsey\Uuid\Math\BrickMathCalculator; use Ramsey\Uuid\Math\CalculatorInterface; @@ -61,92 +63,25 @@ */ class FeatureSet { - /** - * @var bool - */ - private $disableBigNumber = false; - - /** - * @var bool - */ - private $disable64Bit = false; - - /** - * @var bool - */ - private $ignoreSystemNode = false; - - /** - * @var bool - */ - private $enablePecl = false; - - /** - * @var UuidBuilderInterface - */ - private $builder; - - /** - * @var CodecInterface - */ - private $codec; - - /** - * @var DceSecurityGeneratorInterface - */ - private $dceSecurityGenerator; - - /** - * @var NameGeneratorInterface - */ - private $nameGenerator; - - /** - * @var NodeProviderInterface - */ - private $nodeProvider; - - /** - * @var NumberConverterInterface - */ - private $numberConverter; - - /** - * @var TimeConverterInterface - */ - private $timeConverter; - - /** - * @var RandomGeneratorInterface - */ - private $randomGenerator; - - /** - * @var TimeGeneratorInterface - */ - private $timeGenerator; - - /** - * @var TimeProviderInterface - */ - private $timeProvider; - - /** - * @var ValidatorInterface - */ - private $validator; - - /** - * @var CalculatorInterface - */ - private $calculator; + private ?TimeProviderInterface $timeProvider = null; + private CalculatorInterface $calculator; + private CodecInterface $codec; + private DceSecurityGeneratorInterface $dceSecurityGenerator; + private NameGeneratorInterface $nameGenerator; + private NodeProviderInterface $nodeProvider; + private NumberConverterInterface $numberConverter; + private RandomGeneratorInterface $randomGenerator; + private TimeConverterInterface $timeConverter; + private TimeGeneratorInterface $timeGenerator; + private TimeGeneratorInterface $unixTimeGenerator; + private UuidBuilderInterface $builder; + private ValidatorInterface $validator; /** * @param bool $useGuids True build UUIDs using the GuidStringCodec * @param bool $force32Bit True to force the use of 32-bit functionality * (primarily for testing purposes) - * @param bool $forceNoBigNumber True to disable the use of moontoast/math - * (primarily for testing purposes) + * @param bool $forceNoBigNumber (obsolete) * @param bool $ignoreSystemNode True to disable attempts to check for the * system node ID (primarily for testing purposes) * @param bool $enablePecl True to enable the use of the PeclUuidTimeGenerator @@ -154,25 +89,23 @@ class FeatureSet */ public function __construct( bool $useGuids = false, - bool $force32Bit = false, + private bool $force32Bit = false, bool $forceNoBigNumber = false, - bool $ignoreSystemNode = false, - bool $enablePecl = false + private bool $ignoreSystemNode = false, + private bool $enablePecl = false ) { - $this->disableBigNumber = $forceNoBigNumber; - $this->disable64Bit = $force32Bit; - $this->ignoreSystemNode = $ignoreSystemNode; - $this->enablePecl = $enablePecl; - + $this->randomGenerator = $this->buildRandomGenerator(); $this->setCalculator(new BrickMathCalculator()); $this->builder = $this->buildUuidBuilder($useGuids); $this->codec = $this->buildCodec($useGuids); $this->nodeProvider = $this->buildNodeProvider(); $this->nameGenerator = $this->buildNameGenerator(); - $this->randomGenerator = $this->buildRandomGenerator(); $this->setTimeProvider(new SystemTimeProvider()); $this->setDceSecurityProvider(new SystemDceSecurityProvider()); $this->validator = new GenericValidator(); + + assert($this->timeProvider !== null); + $this->unixTimeGenerator = $this->buildUnixTimeGenerator($this->timeProvider); } /** @@ -255,6 +188,14 @@ public function getTimeGenerator(): TimeGeneratorInterface return $this->timeGenerator; } + /** + * Returns the Unix Epoch time generator configured for this environment + */ + public function getUnixTimeGenerator(): TimeGeneratorInterface + { + return $this->unixTimeGenerator; + } + /** * Returns the validator configured for this environment */ @@ -292,7 +233,10 @@ public function setDceSecurityProvider(DceSecurityProviderInterface $dceSecurity public function setNodeProvider(NodeProviderInterface $nodeProvider): void { $this->nodeProvider = $nodeProvider; - $this->timeGenerator = $this->buildTimeGenerator($this->timeProvider); + + if (isset($this->timeProvider)) { + $this->timeGenerator = $this->buildTimeGenerator($this->timeProvider); + } } /** @@ -393,6 +337,21 @@ private function buildTimeGenerator(TimeProviderInterface $timeProvider): TimeGe ))->getGenerator(); } + /** + * Returns a Unix Epoch time generator configured for this environment + * + * @param TimeProviderInterface $timeProvider The time provider to use with + * the time generator + */ + private function buildUnixTimeGenerator(TimeProviderInterface $timeProvider): TimeGeneratorInterface + { + return new UnixTimeGenerator( + new UnixTimeConverter(new BrickMathCalculator()), + $timeProvider, + $this->randomGenerator, + ); + } + /** * Returns a name generator configured for this environment */ @@ -441,6 +400,6 @@ private function buildUuidBuilder(bool $useGuids = false): UuidBuilderInterface */ private function is64BitSystem(): bool { - return PHP_INT_SIZE === 8 && !$this->disable64Bit; + return PHP_INT_SIZE === 8 && !$this->force32Bit; } } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Fields/SerializableFieldsTrait.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Fields/SerializableFieldsTrait.php index 16e6525..3d36b6f 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Fields/SerializableFieldsTrait.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Fields/SerializableFieldsTrait.php @@ -56,22 +56,23 @@ public function __serialize(): array /** * Constructs the object from a serialized string representation * - * @param string $serialized The serialized string representation of the object + * @param string $data The serialized string representation of the object * - * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint * @psalm-suppress UnusedMethodCall */ - public function unserialize($serialized): void + public function unserialize(string $data): void { - if (strlen($serialized) === 16) { - $this->__construct($serialized); + if (strlen($data) === 16) { + $this->__construct($data); } else { - $this->__construct(base64_decode($serialized)); + $this->__construct(base64_decode($data)); } } /** - * @param array{bytes: string} $data + * @param array{bytes?: string} $data + * + * @psalm-suppress UnusedMethodCall */ public function __unserialize(array $data): void { diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/CombGenerator.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/CombGenerator.php index 25b7988..0e88706 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/CombGenerator.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/CombGenerator.php @@ -61,22 +61,10 @@ class CombGenerator implements RandomGeneratorInterface { public const TIMESTAMP_BYTES = 6; - /** - * @var RandomGeneratorInterface - */ - private $randomGenerator; - - /** - * @var NumberConverterInterface - */ - private $converter; - public function __construct( - RandomGeneratorInterface $generator, - NumberConverterInterface $numberConverter + private RandomGeneratorInterface $generator, + private NumberConverterInterface $numberConverter ) { - $this->converter = $numberConverter; - $this->randomGenerator = $generator; } /** @@ -95,11 +83,11 @@ public function generate(int $length): string $hash = ''; if (self::TIMESTAMP_BYTES > 0 && $length > self::TIMESTAMP_BYTES) { - $hash = $this->randomGenerator->generate($length - self::TIMESTAMP_BYTES); + $hash = $this->generator->generate($length - self::TIMESTAMP_BYTES); } $lsbTime = str_pad( - $this->converter->toHex($this->timestamp()), + $this->numberConverter->toHex($this->timestamp()), self::TIMESTAMP_BYTES * 2, '0', STR_PAD_LEFT diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/DceSecurityGenerator.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/DceSecurityGenerator.php index aca8c5d..37ba781 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/DceSecurityGenerator.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/DceSecurityGenerator.php @@ -52,29 +52,11 @@ class DceSecurityGenerator implements DceSecurityGeneratorInterface */ private const CLOCK_SEQ_LOW = 0; - /** - * @var NumberConverterInterface - */ - private $numberConverter; - - /** - * @var TimeGeneratorInterface - */ - private $timeGenerator; - - /** - * @var DceSecurityProviderInterface - */ - private $dceSecurityProvider; - public function __construct( - NumberConverterInterface $numberConverter, - TimeGeneratorInterface $timeGenerator, - DceSecurityProviderInterface $dceSecurityProvider + private NumberConverterInterface $numberConverter, + private TimeGeneratorInterface $timeGenerator, + private DceSecurityProviderInterface $dceSecurityProvider ) { - $this->numberConverter = $numberConverter; - $this->timeGenerator = $timeGenerator; - $this->dceSecurityProvider = $dceSecurityProvider; } public function generate( @@ -153,8 +135,7 @@ public function generate( // Replace bytes in the time-based UUID with DCE Security values. $bytes = substr_replace($bytes, $identifierBytes, 0, 4); - $bytes = substr_replace($bytes, $domainByte, 9, 1); - return $bytes; + return substr_replace($bytes, $domainByte, 9, 1); } } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/DefaultTimeGenerator.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/DefaultTimeGenerator.php index d245c7b..a1b39b0 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/DefaultTimeGenerator.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/DefaultTimeGenerator.php @@ -40,29 +40,11 @@ */ class DefaultTimeGenerator implements TimeGeneratorInterface { - /** - * @var NodeProviderInterface - */ - private $nodeProvider; - - /** - * @var TimeConverterInterface - */ - private $timeConverter; - - /** - * @var TimeProviderInterface - */ - private $timeProvider; - public function __construct( - NodeProviderInterface $nodeProvider, - TimeConverterInterface $timeConverter, - TimeProviderInterface $timeProvider + private NodeProviderInterface $nodeProvider, + private TimeConverterInterface $timeConverter, + private TimeProviderInterface $timeProvider ) { - $this->nodeProvider = $nodeProvider; - $this->timeConverter = $timeConverter; - $this->timeProvider = $timeProvider; } /** @@ -121,13 +103,13 @@ public function generate($node = null, ?int $clockSeq = null): string * Uses the node provider given when constructing this instance to get * the node ID (usually a MAC address) * - * @param string|int|null $node A node value that may be used to override the node provider + * @param int|string|null $node A node value that may be used to override the node provider * * @return string 6-byte binary string representation of the node * * @throws InvalidArgumentException */ - private function getValidNode($node): string + private function getValidNode(int | string | null $node): string { if ($node === null) { $node = $this->nodeProvider->getNode(); diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/PeclUuidNameGenerator.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/PeclUuidNameGenerator.php index 3780c5c..6a6d1ae 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/PeclUuidNameGenerator.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/PeclUuidNameGenerator.php @@ -33,21 +33,16 @@ class PeclUuidNameGenerator implements NameGeneratorInterface /** @psalm-pure */ public function generate(UuidInterface $ns, string $name, string $hashAlgorithm): string { - switch ($hashAlgorithm) { - case 'md5': - $uuid = uuid_generate_md5($ns->toString(), $name); - - break; - case 'sha1': - $uuid = uuid_generate_sha1($ns->toString(), $name); - - break; - default: - throw new NameException(sprintf( + $uuid = match ($hashAlgorithm) { + 'md5' => uuid_generate_md5($ns->toString(), $name), + 'sha1' => uuid_generate_sha1($ns->toString(), $name), + default => throw new NameException( + sprintf( 'Unable to hash namespace and name with algorithm \'%s\'', $hashAlgorithm - )); - } + ) + ), + }; return uuid_parse($uuid); } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/RandomGeneratorInterface.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/RandomGeneratorInterface.php index 5c83cb4..1180b97 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/RandomGeneratorInterface.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/RandomGeneratorInterface.php @@ -22,7 +22,7 @@ interface RandomGeneratorInterface /** * Generates a string of randomized binary data * - * @param int $length The number of bytes of random binary data to generate + * @param int<1, max> $length The number of bytes of random binary data to generate * * @return string A binary string */ diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/RandomLibAdapter.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/RandomLibAdapter.php index 793ccd5..fd0ccc8 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/RandomLibAdapter.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/RandomLibAdapter.php @@ -29,10 +29,7 @@ */ class RandomLibAdapter implements RandomGeneratorInterface { - /** - * @var Generator - */ - private $generator; + private Generator $generator; /** * Constructs a RandomLibAdapter diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/TimeGeneratorFactory.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/TimeGeneratorFactory.php index 3d55fc4..8d06fc3 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/TimeGeneratorFactory.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/TimeGeneratorFactory.php @@ -24,29 +24,11 @@ */ class TimeGeneratorFactory { - /** - * @var NodeProviderInterface - */ - private $nodeProvider; - - /** - * @var TimeConverterInterface - */ - private $timeConverter; - - /** - * @var TimeProviderInterface - */ - private $timeProvider; - public function __construct( - NodeProviderInterface $nodeProvider, - TimeConverterInterface $timeConverter, - TimeProviderInterface $timeProvider + private NodeProviderInterface $nodeProvider, + private TimeConverterInterface $timeConverter, + private TimeProviderInterface $timeProvider ) { - $this->nodeProvider = $nodeProvider; - $this->timeConverter = $timeConverter; - $this->timeProvider = $timeProvider; } /** diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/UnixTimeGenerator.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/UnixTimeGenerator.php new file mode 100644 index 0000000..1aef869 --- /dev/null +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Generator/UnixTimeGenerator.php @@ -0,0 +1,52 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Generator; + +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Provider\TimeProviderInterface; + +use function hex2bin; + +/** + * UnixTimeGenerator generates bytes that combine a 48-bit timestamp in + * milliseconds since the Unix Epoch with 80 random bits + */ +class UnixTimeGenerator implements TimeGeneratorInterface +{ + public function __construct( + private TimeConverterInterface $timeConverter, + private TimeProviderInterface $timeProvider, + private RandomGeneratorInterface $randomGenerator + ) { + } + + /** + * @inheritDoc + */ + public function generate($node = null, ?int $clockSeq = null): string + { + // Generate 10 random bytes to append to the string returned, since our + // time bytes will consist of 6 bytes. + $random = $this->randomGenerator->generate(10); + + $time = $this->timeProvider->getTime(); + $unixTimeHex = $this->timeConverter->calculateTime( + $time->getSeconds()->toString(), + $time->getMicroseconds()->toString(), + ); + + return hex2bin($unixTimeHex->toString()) . $random; + } +} diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Guid/Fields.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Guid/Fields.php index d8a1a2b..0fc5d1c 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Guid/Fields.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Guid/Fields.php @@ -17,6 +17,7 @@ use Ramsey\Uuid\Exception\InvalidArgumentException; use Ramsey\Uuid\Fields\SerializableFieldsTrait; use Ramsey\Uuid\Rfc4122\FieldsInterface; +use Ramsey\Uuid\Rfc4122\MaxTrait; use Ramsey\Uuid\Rfc4122\NilTrait; use Ramsey\Uuid\Rfc4122\VariantTrait; use Ramsey\Uuid\Rfc4122\VersionTrait; @@ -44,16 +45,12 @@ */ final class Fields implements FieldsInterface { + use MaxTrait; use NilTrait; use SerializableFieldsTrait; use VariantTrait; use VersionTrait; - /** - * @var string - */ - private $bytes; - /** * @param string $bytes A 16-byte binary string representation of a UUID * @@ -61,17 +58,15 @@ final class Fields implements FieldsInterface * @throws InvalidArgumentException if the byte string does not represent a GUID * @throws InvalidArgumentException if the byte string does not contain a valid version */ - public function __construct(string $bytes) + public function __construct(private string $bytes) { - if (strlen($bytes) !== 16) { + if (strlen($this->bytes) !== 16) { throw new InvalidArgumentException( 'The byte string must be 16 bytes long; ' - . 'received ' . strlen($bytes) . ' bytes' + . 'received ' . strlen($this->bytes) . ' bytes' ); } - $this->bytes = $bytes; - if (!$this->isCorrectVariant()) { throw new InvalidArgumentException( 'The byte string received does not conform to the RFC ' @@ -149,7 +144,13 @@ public function getTimestamp(): Hexadecimal public function getClockSeq(): Hexadecimal { - $clockSeq = hexdec(bin2hex(substr($this->bytes, 8, 2))) & 0x3fff; + if ($this->isMax()) { + $clockSeq = 0xffff; + } elseif ($this->isNil()) { + $clockSeq = 0x0000; + } else { + $clockSeq = hexdec(bin2hex(substr($this->bytes, 8, 2))) & 0x3fff; + } return new Hexadecimal(str_pad(dechex($clockSeq), 4, '0', STR_PAD_LEFT)); } @@ -171,7 +172,7 @@ public function getNode(): Hexadecimal public function getVersion(): ?int { - if ($this->isNil()) { + if ($this->isNil() || $this->isMax()) { return null; } @@ -183,7 +184,7 @@ public function getVersion(): ?int private function isCorrectVariant(): bool { - if ($this->isNil()) { + if ($this->isNil() || $this->isMax()) { return true; } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Guid/GuidBuilder.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Guid/GuidBuilder.php index 758dd6b..c036bb2 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Guid/GuidBuilder.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Guid/GuidBuilder.php @@ -31,16 +31,6 @@ */ class GuidBuilder implements UuidBuilderInterface { - /** - * @var NumberConverterInterface - */ - private $numberConverter; - - /** - * @var TimeConverterInterface - */ - private $timeConverter; - /** * @param NumberConverterInterface $numberConverter The number converter to * use when constructing the Guid @@ -48,11 +38,9 @@ class GuidBuilder implements UuidBuilderInterface * for converting timestamps extracted from a UUID to Unix timestamps */ public function __construct( - NumberConverterInterface $numberConverter, - TimeConverterInterface $timeConverter + private NumberConverterInterface $numberConverter, + private TimeConverterInterface $timeConverter ) { - $this->numberConverter = $numberConverter; - $this->timeConverter = $timeConverter; } /** diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php index 8ba7579..c0b47bb 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php @@ -18,8 +18,8 @@ use Ramsey\Uuid\Converter\NumberConverterInterface; use Ramsey\Uuid\Exception\UnsupportedOperationException; use Ramsey\Uuid\Fields\FieldsInterface; -use Ramsey\Uuid\Nonstandard\UuidV6; use Ramsey\Uuid\Rfc4122\UuidV1; +use Ramsey\Uuid\Rfc4122\UuidV6; use Ramsey\Uuid\Type\Hexadecimal; use Ramsey\Uuid\Type\Integer as IntegerObject; use Ramsey\Uuid\UuidFactory; @@ -55,18 +55,14 @@ final class LazyUuidFromString implements UuidInterface { public const VALID_REGEX = '/\A[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\z/ms'; + + private ?UuidInterface $unwrapped = null; + /** - * @var string - * @psalm-var non-empty-string + * @psalm-param non-empty-string $uuid */ - private $uuid; - /** @var UuidInterface|null */ - private $unwrapped; - - /** @psalm-param non-empty-string $uuid */ - public function __construct(string $uuid) + public function __construct(private string $uuid) { - $this->uuid = $uuid; } /** @psalm-pure */ @@ -105,19 +101,20 @@ public function __serialize(): array /** * {@inheritDoc} * - * @param string $serialized + * @param string $data * - * @psalm-param non-empty-string $serialized + * @psalm-param non-empty-string $data */ - public function unserialize($serialized): void + public function unserialize(string $data): void { - $this->uuid = $serialized; + $this->uuid = $data; } /** - * @param array{string: string} $data + * @param array{string?: string} $data * - * @psalm-param array{string: non-empty-string} $data + * @psalm-param array{string?: non-empty-string} $data + * @psalm-suppress UnusedMethodCall */ public function __unserialize(array $data): void { diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Nonstandard/Fields.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Nonstandard/Fields.php index 927bc6a..5dfe610 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Nonstandard/Fields.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Nonstandard/Fields.php @@ -47,26 +47,19 @@ final class Fields implements FieldsInterface use SerializableFieldsTrait; use VariantTrait; - /** - * @var string - */ - private $bytes; - /** * @param string $bytes A 16-byte binary string representation of a UUID * * @throws InvalidArgumentException if the byte string is not exactly 16 bytes */ - public function __construct(string $bytes) + public function __construct(private string $bytes) { - if (strlen($bytes) !== 16) { + if (strlen($this->bytes) !== 16) { throw new InvalidArgumentException( 'The byte string must be 16 bytes long; ' - . 'received ' . strlen($bytes) . ' bytes' + . 'received ' . strlen($this->bytes) . ' bytes' ); } - - $this->bytes = $bytes; } public function getBytes(): string @@ -130,4 +123,9 @@ public function isNil(): bool { return false; } + + public function isMax(): bool + { + return false; + } } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Nonstandard/UuidBuilder.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Nonstandard/UuidBuilder.php index 0c89277..82efd40 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Nonstandard/UuidBuilder.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Nonstandard/UuidBuilder.php @@ -29,16 +29,6 @@ */ class UuidBuilder implements UuidBuilderInterface { - /** - * @var NumberConverterInterface - */ - private $numberConverter; - - /** - * @var TimeConverterInterface - */ - private $timeConverter; - /** * @param NumberConverterInterface $numberConverter The number converter to * use when constructing the Nonstandard\Uuid @@ -46,11 +36,9 @@ class UuidBuilder implements UuidBuilderInterface * for converting timestamps extracted from a UUID to Unix timestamps */ public function __construct( - NumberConverterInterface $numberConverter, - TimeConverterInterface $timeConverter + private NumberConverterInterface $numberConverter, + private TimeConverterInterface $timeConverter ) { - $this->numberConverter = $numberConverter; - $this->timeConverter = $timeConverter; } /** diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Nonstandard/UuidV6.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Nonstandard/UuidV6.php index 05586b3..1a7bbaf 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Nonstandard/UuidV6.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Nonstandard/UuidV6.php @@ -14,39 +14,34 @@ namespace Ramsey\Uuid\Nonstandard; -use DateTimeImmutable; -use DateTimeInterface; use Ramsey\Uuid\Codec\CodecInterface; use Ramsey\Uuid\Converter\NumberConverterInterface; use Ramsey\Uuid\Converter\TimeConverterInterface; -use Ramsey\Uuid\Exception\DateTimeException; use Ramsey\Uuid\Exception\InvalidArgumentException; use Ramsey\Uuid\Lazy\LazyUuidFromString; use Ramsey\Uuid\Rfc4122\FieldsInterface as Rfc4122FieldsInterface; +use Ramsey\Uuid\Rfc4122\TimeTrait; use Ramsey\Uuid\Rfc4122\UuidInterface; use Ramsey\Uuid\Rfc4122\UuidV1; use Ramsey\Uuid\Uuid; -use Throwable; - -use function hex2bin; -use function str_pad; -use function substr; - -use const STR_PAD_LEFT; /** - * Ordered-time, or version 6, UUIDs include timestamp, clock sequence, and node - * values that are combined into a 128-bit unsigned integer + * Reordered time, or version 6, UUIDs include timestamp, clock sequence, and + * node values that are combined into a 128-bit unsigned integer + * + * @deprecated Use {@see \Ramsey\Uuid\Rfc4122\UuidV6} instead. * * @link https://github.com/uuid6/uuid6-ietf-draft UUID version 6 IETF draft * @link http://gh.peabody.io/uuidv6/ "Version 6" UUIDs * * @psalm-immutable */ -final class UuidV6 extends Uuid implements UuidInterface +class UuidV6 extends Uuid implements UuidInterface { + use TimeTrait; + /** - * Creates a version 6 (time-based) UUID + * Creates a version 6 (reordered time) UUID * * @param Rfc4122FieldsInterface $fields The fields from which to construct a UUID * @param NumberConverterInterface $numberConverter The number converter to use @@ -62,39 +57,16 @@ public function __construct( CodecInterface $codec, TimeConverterInterface $timeConverter ) { - if ($fields->getVersion() !== Uuid::UUID_TYPE_PEABODY) { + if ($fields->getVersion() !== Uuid::UUID_TYPE_REORDERED_TIME) { throw new InvalidArgumentException( 'Fields used to create a UuidV6 must represent a ' - . 'version 6 (ordered-time) UUID' + . 'version 6 (reordered time) UUID' ); } parent::__construct($fields, $numberConverter, $codec, $timeConverter); } - /** - * Returns a DateTimeInterface object representing the timestamp associated - * with the UUID - * - * @return DateTimeImmutable A PHP DateTimeImmutable instance representing - * the timestamp of a version 6 UUID - */ - public function getDateTime(): DateTimeInterface - { - $time = $this->timeConverter->convertTime($this->fields->getTimestamp()); - - try { - return new DateTimeImmutable( - '@' - . $time->getSeconds()->toString() - . '.' - . str_pad($time->getMicroseconds()->toString(), 6, '0', STR_PAD_LEFT) - ); - } catch (Throwable $e) { - throw new DateTimeException($e->getMessage(), (int) $e->getCode(), $e); - } - } - /** * Converts this UUID into an instance of a version 1 UUID */ @@ -116,7 +88,7 @@ public function toUuidV1(): UuidV1 /** * Converts a version 1 UUID into an instance of a version 6 UUID */ - public static function fromUuidV1(UuidV1 $uuidV1): UuidV6 + public static function fromUuidV1(UuidV1 $uuidV1): \Ramsey\Uuid\Rfc4122\UuidV6 { $hex = $uuidV1->getHex()->toString(); $hex = substr($hex, 13, 3) diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Provider/Dce/SystemDceSecurityProvider.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Provider/Dce/SystemDceSecurityProvider.php index 7ff4076..d5b6cf0 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Provider/Dce/SystemDceSecurityProvider.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Provider/Dce/SystemDceSecurityProvider.php @@ -21,7 +21,6 @@ use function escapeshellarg; use function preg_split; use function str_getcsv; -use function strpos; use function strrpos; use function strtolower; use function strtoupper; @@ -42,6 +41,7 @@ class SystemDceSecurityProvider implements DceSecurityProviderInterface */ public function getUid(): IntegerObject { + /** @var int|float|string|IntegerObject|null $uid */ static $uid = null; if ($uid instanceof IntegerObject) { @@ -72,6 +72,7 @@ public function getUid(): IntegerObject */ public function getGid(): IntegerObject { + /** @var int|float|string|IntegerObject|null $gid */ static $gid = null; if ($gid instanceof IntegerObject) { @@ -104,15 +105,10 @@ private function getSystemUid(): string return ''; } - switch ($this->getOs()) { - case 'WIN': - return $this->getWindowsUid(); - case 'DAR': - case 'FRE': - case 'LIN': - default: - return trim((string) shell_exec('id -u')); - } + return match ($this->getOs()) { + 'WIN' => $this->getWindowsUid(), + default => trim((string) shell_exec('id -u')), + }; } /** @@ -124,15 +120,10 @@ private function getSystemGid(): string return ''; } - switch ($this->getOs()) { - case 'WIN': - return $this->getWindowsGid(); - case 'DAR': - case 'FRE': - case 'LIN': - default: - return trim((string) shell_exec('id -g')); - } + return match ($this->getOs()) { + 'WIN' => $this->getWindowsGid(), + default => trim((string) shell_exec('id -g')), + }; } /** @@ -142,7 +133,7 @@ private function hasShellExec(): bool { $disabledFunctions = strtolower((string) ini_get('disable_functions')); - return strpos($disabledFunctions, 'shell_exec') === false; + return !str_contains($disabledFunctions, 'shell_exec'); } /** @@ -150,7 +141,13 @@ private function hasShellExec(): bool */ private function getOs(): string { - return strtoupper(substr(constant('PHP_OS'), 0, 3)); + /** + * @psalm-suppress UnnecessaryVarAnnotation + * @var string $phpOs + */ + $phpOs = constant('PHP_OS'); + + return strtoupper(substr($phpOs, 0, 3)); } /** diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Provider/Node/FallbackNodeProvider.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Provider/Node/FallbackNodeProvider.php index fe890cc..d2eb20b 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Provider/Node/FallbackNodeProvider.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Provider/Node/FallbackNodeProvider.php @@ -24,24 +24,18 @@ */ class FallbackNodeProvider implements NodeProviderInterface { - /** - * @var iterable - */ - private $nodeProviders; - /** * @param iterable $providers Array of node providers */ - public function __construct(iterable $providers) + public function __construct(private iterable $providers) { - $this->nodeProviders = $providers; } public function getNode(): Hexadecimal { $lastProviderException = null; - foreach ($this->nodeProviders as $provider) { + foreach ($this->providers as $provider) { try { return $provider->getNode(); } catch (NodeException $exception) { diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Provider/Node/StaticNodeProvider.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Provider/Node/StaticNodeProvider.php index 51f1b02..0f7536a 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Provider/Node/StaticNodeProvider.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Provider/Node/StaticNodeProvider.php @@ -32,10 +32,7 @@ */ class StaticNodeProvider implements NodeProviderInterface { - /** - * @var Hexadecimal - */ - private $node; + private Hexadecimal $node; /** * @param Hexadecimal $node The static node value to use diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Provider/Node/SystemNodeProvider.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Provider/Node/SystemNodeProvider.php index d512f22..d0a1e69 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Provider/Node/SystemNodeProvider.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Provider/Node/SystemNodeProvider.php @@ -27,8 +27,8 @@ use function preg_match; use function preg_match_all; use function reset; +use function str_contains; use function str_replace; -use function strpos; use function strtolower; use function strtoupper; use function substr; @@ -100,12 +100,18 @@ protected function getIfconfig(): string { $disabledFunctions = strtolower((string) ini_get('disable_functions')); - if (strpos($disabledFunctions, 'passthru') !== false) { + if (str_contains($disabledFunctions, 'passthru')) { return ''; } + /** + * @psalm-suppress UnnecessaryVarAnnotation + * @var string $phpOs + */ + $phpOs = constant('PHP_OS'); + ob_start(); - switch (strtoupper(substr(constant('PHP_OS'), 0, 3))) { + switch (strtoupper(substr($phpOs, 0, 3))) { case 'WIN': passthru('ipconfig /all 2>&1'); @@ -142,13 +148,20 @@ protected function getSysfs(): string { $mac = ''; - if (strtoupper(constant('PHP_OS')) === 'LINUX') { + /** + * @psalm-suppress UnnecessaryVarAnnotation + * @var string $phpOs + */ + $phpOs = constant('PHP_OS'); + + if (strtoupper($phpOs) === 'LINUX') { $addressPaths = glob('/sys/class/net/*/address', GLOB_NOSORT); if ($addressPaths === false || count($addressPaths) === 0) { return ''; } + /** @var array $macs */ $macs = []; array_walk($addressPaths, function (string $addressPath) use (&$macs): void { @@ -157,7 +170,10 @@ protected function getSysfs(): string } }); - $macs = array_map('trim', $macs); + /** @var callable $trim */ + $trim = 'trim'; + + $macs = array_map($trim, $macs); // Remove invalid entries. $macs = array_filter($macs, function (string $address) { @@ -165,6 +181,7 @@ protected function getSysfs(): string && preg_match(self::SYSFS_PATTERN, $address); }); + /** @var string|bool $mac */ $mac = reset($macs); } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Provider/Time/FixedTimeProvider.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Provider/Time/FixedTimeProvider.php index b8bfd72..526c8ff 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Provider/Time/FixedTimeProvider.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Provider/Time/FixedTimeProvider.php @@ -19,21 +19,15 @@ use Ramsey\Uuid\Type\Time; /** - * FixedTimeProvider uses an known time to provide the time + * FixedTimeProvider uses a known time to provide the time * * This provider allows the use of a previously-generated, or known, time * when generating time-based UUIDs. */ class FixedTimeProvider implements TimeProviderInterface { - /** - * @var Time - */ - private $fixedTime; - - public function __construct(Time $time) + public function __construct(private Time $time) { - $this->fixedTime = $time; } /** @@ -43,7 +37,7 @@ public function __construct(Time $time) */ public function setUsec($value): void { - $this->fixedTime = new Time($this->fixedTime->getSeconds(), $value); + $this->time = new Time($this->time->getSeconds(), $value); } /** @@ -53,11 +47,11 @@ public function setUsec($value): void */ public function setSec($value): void { - $this->fixedTime = new Time($value, $this->fixedTime->getMicroseconds()); + $this->time = new Time($value, $this->time->getMicroseconds()); } public function getTime(): Time { - return $this->fixedTime; + return $this->time; } } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/Fields.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/Fields.php index 2ccc20b..9acf810 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/Fields.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/Fields.php @@ -40,16 +40,12 @@ */ final class Fields implements FieldsInterface { + use MaxTrait; use NilTrait; use SerializableFieldsTrait; use VariantTrait; use VersionTrait; - /** - * @var string - */ - private $bytes; - /** * @param string $bytes A 16-byte binary string representation of a UUID * @@ -57,17 +53,15 @@ final class Fields implements FieldsInterface * @throws InvalidArgumentException if the byte string does not represent an RFC 4122 UUID * @throws InvalidArgumentException if the byte string does not contain a valid version */ - public function __construct(string $bytes) + public function __construct(private string $bytes) { - if (strlen($bytes) !== 16) { + if (strlen($this->bytes) !== 16) { throw new InvalidArgumentException( 'The byte string must be 16 bytes long; ' - . 'received ' . strlen($bytes) . ' bytes' + . 'received ' . strlen($this->bytes) . ' bytes' ); } - $this->bytes = $bytes; - if (!$this->isCorrectVariant()) { throw new InvalidArgumentException( 'The byte string received does not conform to the RFC 4122 variant' @@ -88,7 +82,13 @@ public function getBytes(): string public function getClockSeq(): Hexadecimal { - $clockSeq = hexdec(bin2hex(substr($this->bytes, 8, 2))) & 0x3fff; + if ($this->isMax()) { + $clockSeq = 0xffff; + } elseif ($this->isNil()) { + $clockSeq = 0x0000; + } else { + $clockSeq = hexdec(bin2hex(substr($this->bytes, 8, 2))) & 0x3fff; + } return new Hexadecimal(str_pad(dechex($clockSeq), 4, '0', STR_PAD_LEFT)); } @@ -140,52 +140,53 @@ public function getTimeMid(): Hexadecimal */ public function getTimestamp(): Hexadecimal { - switch ($this->getVersion()) { - case Uuid::UUID_TYPE_DCE_SECURITY: - $timestamp = sprintf( - '%03x%04s%08s', - hexdec($this->getTimeHiAndVersion()->toString()) & 0x0fff, - $this->getTimeMid()->toString(), - '' - ); - - break; - case Uuid::UUID_TYPE_PEABODY: - $timestamp = sprintf( - '%08s%04s%03x', - $this->getTimeLow()->toString(), - $this->getTimeMid()->toString(), - hexdec($this->getTimeHiAndVersion()->toString()) & 0x0fff - ); - - break; - default: - $timestamp = sprintf( - '%03x%04s%08s', - hexdec($this->getTimeHiAndVersion()->toString()) & 0x0fff, - $this->getTimeMid()->toString(), - $this->getTimeLow()->toString() - ); - } + $timestamp = match ($this->getVersion()) { + Uuid::UUID_TYPE_DCE_SECURITY => sprintf( + '%03x%04s%08s', + hexdec($this->getTimeHiAndVersion()->toString()) & 0x0fff, + $this->getTimeMid()->toString(), + '' + ), + Uuid::UUID_TYPE_REORDERED_TIME => sprintf( + '%08s%04s%03x', + $this->getTimeLow()->toString(), + $this->getTimeMid()->toString(), + hexdec($this->getTimeHiAndVersion()->toString()) & 0x0fff + ), + // The Unix timestamp in version 7 UUIDs is a 48-bit number, + // but for consistency, we will return a 60-bit number, padded + // to the left with zeros. + Uuid::UUID_TYPE_UNIX_TIME => sprintf( + '%011s%04s', + $this->getTimeLow()->toString(), + $this->getTimeMid()->toString(), + ), + default => sprintf( + '%03x%04s%08s', + hexdec($this->getTimeHiAndVersion()->toString()) & 0x0fff, + $this->getTimeMid()->toString(), + $this->getTimeLow()->toString() + ), + }; return new Hexadecimal($timestamp); } public function getVersion(): ?int { - if ($this->isNil()) { + if ($this->isNil() || $this->isMax()) { return null; } - /** @var array $parts */ + /** @var int[] $parts */ $parts = unpack('n*', $this->bytes); - return (int) $parts[4] >> 12; + return $parts[4] >> 12; } private function isCorrectVariant(): bool { - if ($this->isNil()) { + if ($this->isNil() || $this->isMax()) { return true; } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/FieldsInterface.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/FieldsInterface.php index a303525..2241cf5 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/FieldsInterface.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/FieldsInterface.php @@ -103,11 +103,13 @@ public function getVariant(): int; * The version number describes how the UUID was generated and has the * following meaning: * - * 1. Time-based UUID + * 1. Gregorian time UUID * 2. DCE security UUID * 3. Name-based UUID hashed with MD5 * 4. Randomly generated UUID * 5. Name-based UUID hashed with SHA-1 + * 6. Reordered time UUID + * 7. Unix Epoch time UUID * * This returns `null` if the UUID is not an RFC 4122 variant, since version * is only meaningful for this variant. diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/MaxTrait.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/MaxTrait.php new file mode 100644 index 0000000..2ec3047 --- /dev/null +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/MaxTrait.php @@ -0,0 +1,41 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Rfc4122; + +/** + * Provides common functionality for max UUIDs + * + * The max UUID is special form of UUID that is specified to have all 128 bits + * set to one. It is the inverse of the nil UUID. + * + * @link https://datatracker.ietf.org/doc/html/draft-peabody-dispatch-new-uuid-format-04#section-5.4 Max UUID + * + * @psalm-immutable + */ +trait MaxTrait +{ + /** + * Returns the bytes that comprise the fields + */ + abstract public function getBytes(): string; + + /** + * Returns true if the byte string represents a max UUID + */ + public function isMax(): bool + { + return $this->getBytes() === "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff"; + } +} diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/MaxUuid.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/MaxUuid.php new file mode 100644 index 0000000..e5ffa72 --- /dev/null +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/MaxUuid.php @@ -0,0 +1,27 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Rfc4122; + +use Ramsey\Uuid\Uuid; + +/** + * The max UUID is special form of UUID that is specified to have all 128 bits + * set to one + * + * @psalm-immutable + */ +final class MaxUuid extends Uuid implements UuidInterface +{ +} diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/TimeTrait.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/TimeTrait.php new file mode 100644 index 0000000..5d939fa --- /dev/null +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/TimeTrait.php @@ -0,0 +1,55 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Rfc4122; + +use DateTimeImmutable; +use DateTimeInterface; +use Ramsey\Uuid\Exception\DateTimeException; +use Throwable; + +use function str_pad; + +use const STR_PAD_LEFT; + +/** + * Provides common functionality for getting the time from a time-based UUID + * + * @psalm-immutable + */ +trait TimeTrait +{ + /** + * Returns a DateTimeInterface object representing the timestamp associated + * with the UUID + * + * @return DateTimeImmutable A PHP DateTimeImmutable instance representing + * the timestamp of a time-based UUID + */ + public function getDateTime(): DateTimeInterface + { + $time = $this->timeConverter->convertTime($this->fields->getTimestamp()); + + try { + return new DateTimeImmutable( + '@' + . $time->getSeconds()->toString() + . '.' + . str_pad($time->getMicroseconds()->toString(), 6, '0', STR_PAD_LEFT) + ); + } catch (Throwable $e) { + throw new DateTimeException($e->getMessage(), (int) $e->getCode(), $e); + } + } +} diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/UuidBuilder.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/UuidBuilder.php index 736931a..859649f 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/UuidBuilder.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/UuidBuilder.php @@ -17,11 +17,13 @@ use Ramsey\Uuid\Builder\UuidBuilderInterface; use Ramsey\Uuid\Codec\CodecInterface; use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Converter\Time\UnixTimeConverter; use Ramsey\Uuid\Converter\TimeConverterInterface; use Ramsey\Uuid\Exception\UnableToBuildUuidException; use Ramsey\Uuid\Exception\UnsupportedOperationException; -use Ramsey\Uuid\Nonstandard\UuidV6; +use Ramsey\Uuid\Math\BrickMathCalculator; use Ramsey\Uuid\Rfc4122\UuidInterface as Rfc4122UuidInterface; +use Ramsey\Uuid\Uuid; use Ramsey\Uuid\UuidInterface; use Throwable; @@ -32,15 +34,7 @@ */ class UuidBuilder implements UuidBuilderInterface { - /** - * @var NumberConverterInterface - */ - private $numberConverter; - - /** - * @var TimeConverterInterface - */ - private $timeConverter; + private TimeConverterInterface $unixTimeConverter; /** * Constructs the DefaultUuidBuilder @@ -48,14 +42,18 @@ class UuidBuilder implements UuidBuilderInterface * @param NumberConverterInterface $numberConverter The number converter to * use when constructing the Uuid * @param TimeConverterInterface $timeConverter The time converter to use - * for converting timestamps extracted from a UUID to Unix timestamps + * for converting Gregorian time extracted from version 1, 2, and 6 + * UUIDs to Unix timestamps + * @param TimeConverterInterface|null $unixTimeConverter The time converter + * to use for converter Unix Epoch time extracted from version 7 UUIDs + * to Unix timestamps */ public function __construct( - NumberConverterInterface $numberConverter, - TimeConverterInterface $timeConverter + private NumberConverterInterface $numberConverter, + private TimeConverterInterface $timeConverter, + ?TimeConverterInterface $unixTimeConverter = null ) { - $this->numberConverter = $numberConverter; - $this->timeConverter = $timeConverter; + $this->unixTimeConverter = $unixTimeConverter ?? new UnixTimeConverter(new BrickMathCalculator()); } /** @@ -71,25 +69,32 @@ public function __construct( public function build(CodecInterface $codec, string $bytes): UuidInterface { try { + /** @var Fields $fields */ $fields = $this->buildFields($bytes); if ($fields->isNil()) { return new NilUuid($fields, $this->numberConverter, $codec, $this->timeConverter); } + if ($fields->isMax()) { + return new MaxUuid($fields, $this->numberConverter, $codec, $this->timeConverter); + } + switch ($fields->getVersion()) { - case 1: + case Uuid::UUID_TYPE_TIME: return new UuidV1($fields, $this->numberConverter, $codec, $this->timeConverter); - case 2: + case Uuid::UUID_TYPE_DCE_SECURITY: return new UuidV2($fields, $this->numberConverter, $codec, $this->timeConverter); - case 3: + case Uuid::UUID_TYPE_HASH_MD5: return new UuidV3($fields, $this->numberConverter, $codec, $this->timeConverter); - case 4: + case Uuid::UUID_TYPE_RANDOM: return new UuidV4($fields, $this->numberConverter, $codec, $this->timeConverter); - case 5: + case Uuid::UUID_TYPE_HASH_SHA1: return new UuidV5($fields, $this->numberConverter, $codec, $this->timeConverter); - case 6: + case Uuid::UUID_TYPE_REORDERED_TIME: return new UuidV6($fields, $this->numberConverter, $codec, $this->timeConverter); + case Uuid::UUID_TYPE_UNIX_TIME: + return new UuidV7($fields, $this->numberConverter, $codec, $this->unixTimeConverter); } throw new UnsupportedOperationException( diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/UuidInterface.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/UuidInterface.php index 3e4d9fa..e80f33b 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/UuidInterface.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/UuidInterface.php @@ -26,11 +26,4 @@ */ interface UuidInterface extends BaseUuidInterface { - /** - * Returns the string standard representation of the UUID as a URN - * - * @link http://en.wikipedia.org/wiki/Uniform_Resource_Name Uniform Resource Name - * @link https://tools.ietf.org/html/rfc4122#section-3 RFC 4122, § 3: Namespace Registration Template - */ - public function getUrn(): string; } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/UuidV1.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/UuidV1.php index 764e42f..515c038 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/UuidV1.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/UuidV1.php @@ -14,31 +14,25 @@ namespace Ramsey\Uuid\Rfc4122; -use DateTimeImmutable; -use DateTimeInterface; use Ramsey\Uuid\Codec\CodecInterface; use Ramsey\Uuid\Converter\NumberConverterInterface; use Ramsey\Uuid\Converter\TimeConverterInterface; -use Ramsey\Uuid\Exception\DateTimeException; use Ramsey\Uuid\Exception\InvalidArgumentException; use Ramsey\Uuid\Rfc4122\FieldsInterface as Rfc4122FieldsInterface; use Ramsey\Uuid\Uuid; -use Throwable; - -use function str_pad; - -use const STR_PAD_LEFT; /** - * Time-based, or version 1, UUIDs include timestamp, clock sequence, and node + * Gregorian time, or version 1, UUIDs include timestamp, clock sequence, and node * values that are combined into a 128-bit unsigned integer * * @psalm-immutable */ final class UuidV1 extends Uuid implements UuidInterface { + use TimeTrait; + /** - * Creates a version 1 (time-based) UUID + * Creates a version 1 (Gregorian time) UUID * * @param Rfc4122FieldsInterface $fields The fields from which to construct a UUID * @param NumberConverterInterface $numberConverter The number converter to use @@ -63,30 +57,4 @@ public function __construct( parent::__construct($fields, $numberConverter, $codec, $timeConverter); } - - /** - * Returns a DateTimeInterface object representing the timestamp associated - * with the UUID - * - * The timestamp value is only meaningful in a time-based UUID, which - * has version type 1. - * - * @return DateTimeImmutable A PHP DateTimeImmutable instance representing - * the timestamp of a version 1 UUID - */ - public function getDateTime(): DateTimeInterface - { - $time = $this->timeConverter->convertTime($this->fields->getTimestamp()); - - try { - return new DateTimeImmutable( - '@' - . $time->getSeconds()->toString() - . '.' - . str_pad($time->getMicroseconds()->toString(), 6, '0', STR_PAD_LEFT) - ); - } catch (Throwable $e) { - throw new DateTimeException($e->getMessage(), (int) $e->getCode(), $e); - } - } } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/UuidV2.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/UuidV2.php index 74906f0..c8ccbe4 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/UuidV2.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/UuidV2.php @@ -14,28 +14,33 @@ namespace Ramsey\Uuid\Rfc4122; -use DateTimeImmutable; -use DateTimeInterface; use Ramsey\Uuid\Codec\CodecInterface; use Ramsey\Uuid\Converter\NumberConverterInterface; use Ramsey\Uuid\Converter\TimeConverterInterface; -use Ramsey\Uuid\Exception\DateTimeException; use Ramsey\Uuid\Exception\InvalidArgumentException; use Ramsey\Uuid\Rfc4122\FieldsInterface as Rfc4122FieldsInterface; use Ramsey\Uuid\Type\Integer as IntegerObject; use Ramsey\Uuid\Uuid; -use Throwable; use function hexdec; -use function str_pad; - -use const STR_PAD_LEFT; /** * DCE Security version, or version 2, UUIDs include local domain identifier, * local ID for the specified domain, and node values that are combined into a * 128-bit unsigned integer * + * It is important to note that a version 2 UUID suffers from some loss of + * fidelity of the timestamp, due to replacing the time_low field with the + * local identifier. When constructing the timestamp value for date + * purposes, we replace the local identifier bits with zeros. As a result, + * the timestamp can be off by a range of 0 to 429.4967295 seconds (or 7 + * minutes, 9 seconds, and 496730 microseconds). + * + * Astute observers might note this value directly corresponds to 2^32 - 1, + * or 0xffffffff. The local identifier is 32-bits, and we have set each of + * these bits to 0, so the maximum range of timestamp drift is 0x00000000 + * to 0xffffffff (counted in 100-nanosecond intervals). + * * @link https://publications.opengroup.org/c311 DCE 1.1: Authentication and Security Services * @link https://publications.opengroup.org/c706 DCE 1.1: Remote Procedure Call * @link https://pubs.opengroup.org/onlinepubs/9696989899/chap5.htm#tagcjh_08_02_01_01 DCE 1.1: Auth & Sec, §5.2.1.1 @@ -47,6 +52,8 @@ */ final class UuidV2 extends Uuid implements UuidInterface { + use TimeTrait; + /** * Creates a version 2 (DCE Security) UUID * @@ -74,41 +81,6 @@ public function __construct( parent::__construct($fields, $numberConverter, $codec, $timeConverter); } - /** - * Returns a DateTimeInterface object representing the timestamp associated - * with the UUID - * - * It is important to note that a version 2 UUID suffers from some loss of - * fidelity of the timestamp, due to replacing the time_low field with the - * local identifier. When constructing the timestamp value for date - * purposes, we replace the local identifier bits with zeros. As a result, - * the timestamp can be off by a range of 0 to 429.4967295 seconds (or 7 - * minutes, 9 seconds, and 496730 microseconds). - * - * Astute observers might note this value directly corresponds to 2^32 - 1, - * or 0xffffffff. The local identifier is 32-bits, and we have set each of - * these bits to 0, so the maximum range of timestamp drift is 0x00000000 - * to 0xffffffff (counted in 100-nanosecond intervals). - * - * @return DateTimeImmutable A PHP DateTimeImmutable instance representing - * the timestamp of a version 2 UUID - */ - public function getDateTime(): DateTimeInterface - { - $time = $this->timeConverter->convertTime($this->fields->getTimestamp()); - - try { - return new DateTimeImmutable( - '@' - . $time->getSeconds()->toString() - . '.' - . str_pad($time->getMicroseconds()->toString(), 6, '0', STR_PAD_LEFT) - ); - } catch (Throwable $e) { - throw new DateTimeException($e->getMessage(), (int) $e->getCode(), $e); - } - } - /** * Returns the local domain used to create this version 2 UUID */ diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/UuidV6.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/UuidV6.php new file mode 100644 index 0000000..9b2ddee --- /dev/null +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/UuidV6.php @@ -0,0 +1,29 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Rfc4122; + +use Ramsey\Uuid\Nonstandard\UuidV6 as NonstandardUuidV6; + +/** + * Reordered time, or version 6, UUIDs include timestamp, clock sequence, and + * node values that are combined into a 128-bit unsigned integer + * + * @link https://datatracker.ietf.org/doc/html/draft-peabody-dispatch-new-uuid-format-04#section-5.1 UUID Version 6 + * + * @psalm-immutable + */ +final class UuidV6 extends NonstandardUuidV6 implements UuidInterface +{ +} diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/UuidV7.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/UuidV7.php new file mode 100644 index 0000000..90c2471 --- /dev/null +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/UuidV7.php @@ -0,0 +1,60 @@ + + * @license http://opensource.org/licenses/MIT MIT + */ + +declare(strict_types=1); + +namespace Ramsey\Uuid\Rfc4122; + +use Ramsey\Uuid\Codec\CodecInterface; +use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Exception\InvalidArgumentException; +use Ramsey\Uuid\Rfc4122\FieldsInterface as Rfc4122FieldsInterface; +use Ramsey\Uuid\Uuid; + +/** + * Gregorian time, or version 1, UUIDs include timestamp, clock sequence, and node + * values that are combined into a 128-bit unsigned integer + * + * @psalm-immutable + */ +final class UuidV7 extends Uuid implements UuidInterface +{ + use TimeTrait; + + /** + * Creates a version 7 (Unix Epoch time) UUID + * + * @param Rfc4122FieldsInterface $fields The fields from which to construct a UUID + * @param NumberConverterInterface $numberConverter The number converter to use + * for converting hex values to/from integers + * @param CodecInterface $codec The codec to use when encoding or decoding + * UUID strings + * @param TimeConverterInterface $timeConverter The time converter to use + * for converting timestamps extracted from a UUID to unix timestamps + */ + public function __construct( + Rfc4122FieldsInterface $fields, + NumberConverterInterface $numberConverter, + CodecInterface $codec, + TimeConverterInterface $timeConverter + ) { + if ($fields->getVersion() !== Uuid::UUID_TYPE_UNIX_TIME) { + throw new InvalidArgumentException( + 'Fields used to create a UuidV7 must represent a ' + . 'version 7 (Unix Epoch time) UUID' + ); + } + + parent::__construct($fields, $numberConverter, $codec, $timeConverter); + } +} diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/Validator.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/Validator.php index ed43c98..6b1f0de 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/Validator.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/Validator.php @@ -28,7 +28,7 @@ final class Validator implements ValidatorInterface { private const VALID_PATTERN = '\A[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-' - . '[1-5]{1}[0-9A-Fa-f]{3}-[ABab89]{1}[0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}\z'; + . '[1-7][0-9A-Fa-f]{3}-[ABab89][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}\z'; /** * @psalm-return non-empty-string @@ -43,7 +43,8 @@ public function getPattern(): string public function validate(string $uuid): bool { $uuid = str_replace(['urn:', 'uuid:', 'URN:', 'UUID:', '{', '}'], '', $uuid); + $uuid = strtolower($uuid); - return $uuid === Uuid::NIL || preg_match('/' . self::VALID_PATTERN . '/Dms', $uuid); + return $uuid === Uuid::NIL || $uuid === Uuid::MAX || preg_match('/' . self::VALID_PATTERN . '/Dms', $uuid); } } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/VariantTrait.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/VariantTrait.php index 4c98165..1041de5 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/VariantTrait.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/VariantTrait.php @@ -19,8 +19,8 @@ use function decbin; use function str_pad; +use function str_starts_with; use function strlen; -use function strpos; use function substr; use function unpack; @@ -58,7 +58,13 @@ public function getVariant(): int throw new InvalidBytesException('Invalid number of bytes'); } - /** @var array $parts */ + if ($this->isMax() || $this->isNil()) { + // RFC 4122 defines these special types of UUID, so we will consider + // them as belonging to the RFC 4122 variant. + return Uuid::RFC_4122; + } + + /** @var int[] $parts */ $parts = unpack('n*', $this->getBytes()); // $parts[5] is a 16-bit, unsigned integer containing the variant bits @@ -67,7 +73,7 @@ public function getVariant(): int // three characters (three most-significant bits) to determine the // variant. $binary = str_pad( - decbin((int) $parts[5]), + decbin($parts[5]), 16, '0', STR_PAD_LEFT @@ -76,15 +82,13 @@ public function getVariant(): int $msb = substr($binary, 0, 3); if ($msb === '111') { - $variant = Uuid::RESERVED_FUTURE; + return Uuid::RESERVED_FUTURE; } elseif ($msb === '110') { - $variant = Uuid::RESERVED_MICROSOFT; - } elseif (strpos($msb, '10') === 0) { - $variant = Uuid::RFC_4122; - } else { - $variant = Uuid::RESERVED_NCS; + return Uuid::RESERVED_MICROSOFT; + } elseif (str_starts_with($msb, '10')) { + return Uuid::RFC_4122; } - return $variant; + return Uuid::RESERVED_NCS; } } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/VersionTrait.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/VersionTrait.php index cee55fb..316f780 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/VersionTrait.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Rfc4122/VersionTrait.php @@ -14,6 +14,8 @@ namespace Ramsey\Uuid\Rfc4122; +use Ramsey\Uuid\Uuid; + /** * Provides common functionality for handling the version, as defined by RFC 4122 * @@ -26,6 +28,11 @@ trait VersionTrait */ abstract public function getVersion(): ?int; + /** + * Returns true if these fields represent a max UUID + */ + abstract public function isMax(): bool; + /** * Returns true if these fields represent a nil UUID */ @@ -38,20 +45,16 @@ abstract public function isNil(): bool; */ private function isCorrectVersion(): bool { - if ($this->isNil()) { + if ($this->isNil() || $this->isMax()) { return true; } - switch ($this->getVersion()) { - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - return true; - } - - return false; + return match ($this->getVersion()) { + Uuid::UUID_TYPE_TIME, Uuid::UUID_TYPE_DCE_SECURITY, + Uuid::UUID_TYPE_HASH_MD5, Uuid::UUID_TYPE_RANDOM, + Uuid::UUID_TYPE_HASH_SHA1, Uuid::UUID_TYPE_REORDERED_TIME, + Uuid::UUID_TYPE_UNIX_TIME => true, + default => false, + }; } } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Type/Decimal.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Type/Decimal.php index 10f9384..acc5e75 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Type/Decimal.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Type/Decimal.php @@ -19,6 +19,7 @@ use function is_numeric; use function sprintf; +use function str_starts_with; /** * A value object representing a decimal @@ -34,20 +35,10 @@ */ final class Decimal implements NumberInterface { - /** - * @var string - */ - private $value; - - /** - * @var bool - */ - private $isNegative = false; + private string $value; + private bool $isNegative = false; - /** - * @param mixed $value The decimal value to store - */ - public function __construct($value) + public function __construct(float | int | string | self $value) { $value = (string) $value; @@ -59,7 +50,7 @@ public function __construct($value) } // Remove the leading +-symbol. - if (strpos($value, '+') === 0) { + if (str_starts_with($value, '+')) { $value = substr($value, 1); } @@ -68,7 +59,7 @@ public function __construct($value) $value = '0'; } - if (strpos($value, '-') === 0) { + if (str_starts_with($value, '-')) { $this->isNegative = true; } @@ -111,18 +102,19 @@ public function __serialize(): array /** * Constructs the object from a serialized string representation * - * @param string $serialized The serialized string representation of the object + * @param string $data The serialized string representation of the object * - * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint * @psalm-suppress UnusedMethodCall */ - public function unserialize($serialized): void + public function unserialize(string $data): void { - $this->__construct($serialized); + $this->__construct($data); } /** - * @param array{string: string} $data + * @param array{string?: string} $data + * + * @psalm-suppress UnusedMethodCall */ public function __unserialize(array $data): void { diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Type/Hexadecimal.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Type/Hexadecimal.php index 88adc2e..3c8f30a 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Type/Hexadecimal.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Type/Hexadecimal.php @@ -19,7 +19,7 @@ use function ctype_xdigit; use function sprintf; -use function strpos; +use function str_starts_with; use function strtolower; use function substr; @@ -34,10 +34,7 @@ */ final class Hexadecimal implements TypeInterface { - /** - * @var string - */ - private $value; + private string $value; /** * @param string $value The hexadecimal value to store @@ -46,7 +43,7 @@ public function __construct(string $value) { $value = strtolower($value); - if (strpos($value, '0x') === 0) { + if (str_starts_with($value, '0x')) { $value = substr($value, 2); } @@ -90,18 +87,17 @@ public function __serialize(): array /** * Constructs the object from a serialized string representation * - * @param string $serialized The serialized string representation of the object + * @param string $data The serialized string representation of the object * - * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint * @psalm-suppress UnusedMethodCall */ - public function unserialize($serialized): void + public function unserialize(string $data): void { - $this->__construct($serialized); + $this->__construct($data); } /** - * @param array{string: string} $data + * @param array{string?: string} $data */ public function __unserialize(array $data): void { diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Type/Integer.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Type/Integer.php index 7690f6c..e41b3ca 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Type/Integer.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Type/Integer.php @@ -20,7 +20,7 @@ use function ctype_digit; use function ltrim; use function sprintf; -use function strpos; +use function str_starts_with; use function substr; /** @@ -40,23 +40,17 @@ final class Integer implements NumberInterface /** * @psalm-var numeric-string */ - private $value; + private string $value; - /** - * @var bool - */ - private $isNegative = false; + private bool $isNegative = false; - /** - * @param mixed $value The integer value to store - */ - public function __construct($value) + public function __construct(float | int | string | self $value) { $value = (string) $value; $sign = '+'; // If the value contains a sign, remove it for ctype_digit() check. - if (strpos($value, '-') === 0 || strpos($value, '+') === 0) { + if (str_starts_with($value, '-') || str_starts_with($value, '+')) { $sign = substr($value, 0, 1); $value = substr($value, 1); } @@ -127,18 +121,17 @@ public function __serialize(): array /** * Constructs the object from a serialized string representation * - * @param string $serialized The serialized string representation of the object + * @param string $data The serialized string representation of the object * - * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint * @psalm-suppress UnusedMethodCall */ - public function unserialize($serialized): void + public function unserialize(string $data): void { - $this->__construct($serialized); + $this->__construct($data); } /** - * @param array{string: string} $data + * @param array{string?: string} $data */ public function __unserialize(array $data): void { diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Type/Time.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Type/Time.php index dd1b8bc..745b5cc 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Type/Time.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Type/Time.php @@ -17,7 +17,6 @@ use Ramsey\Uuid\Exception\UnsupportedOperationException; use Ramsey\Uuid\Type\Integer as IntegerObject; use ValueError; -use stdClass; use function json_decode; use function json_encode; @@ -34,22 +33,13 @@ */ final class Time implements TypeInterface { - /** - * @var IntegerObject - */ - private $seconds; - - /** - * @var IntegerObject - */ - private $microseconds; + private IntegerObject $seconds; + private IntegerObject $microseconds; - /** - * @param mixed $seconds - * @param mixed $microseconds - */ - public function __construct($seconds, $microseconds = 0) - { + public function __construct( + float | int | string | IntegerObject $seconds, + float | int | string | IntegerObject $microseconds = 0, + ) { $this->seconds = new IntegerObject($seconds); $this->microseconds = new IntegerObject($microseconds); } @@ -104,27 +94,26 @@ public function __serialize(): array /** * Constructs the object from a serialized string representation * - * @param string $serialized The serialized string representation of the object + * @param string $data The serialized string representation of the object * - * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint * @psalm-suppress UnusedMethodCall */ - public function unserialize($serialized): void + public function unserialize(string $data): void { - /** @var stdClass $time */ - $time = json_decode($serialized); + /** @var array{seconds?: int|float|string, microseconds?: int|float|string} $time */ + $time = json_decode($data, true); - if (!isset($time->seconds) || !isset($time->microseconds)) { + if (!isset($time['seconds']) || !isset($time['microseconds'])) { throw new UnsupportedOperationException( 'Attempted to unserialize an invalid value' ); } - $this->__construct($time->seconds, $time->microseconds); + $this->__construct($time['seconds'], $time['microseconds']); } /** - * @param array{seconds: string, microseconds: string} $data + * @param array{seconds?: string, microseconds?: string} $data */ public function __unserialize(array $data): void { diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Uuid.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Uuid.php index 5f0922b..6656aba 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Uuid.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/Uuid.php @@ -18,6 +18,7 @@ use Ramsey\Uuid\Codec\CodecInterface; use Ramsey\Uuid\Converter\NumberConverterInterface; use Ramsey\Uuid\Converter\TimeConverterInterface; +use Ramsey\Uuid\Exception\UnsupportedOperationException; use Ramsey\Uuid\Fields\FieldsInterface; use Ramsey\Uuid\Lazy\LazyUuidFromString; use Ramsey\Uuid\Rfc4122\FieldsInterface as Rfc4122FieldsInterface; @@ -27,6 +28,7 @@ use function assert; use function bin2hex; +use function method_exists; use function preg_match; use function sprintf; use function str_replace; @@ -82,6 +84,14 @@ class Uuid implements UuidInterface */ public const NIL = '00000000-0000-0000-0000-000000000000'; + /** + * The max UUID is a special form of UUID that is specified to have all 128 + * bits set to one + * + * @link https://datatracker.ietf.org/doc/html/draft-peabody-dispatch-new-uuid-format-04#section-5.4 Max UUID + */ + public const MAX = 'ffffffff-ffff-ffff-ffff-ffffffffffff'; + /** * Variant: reserved, NCS backward compatibility * @@ -116,7 +126,7 @@ class Uuid implements UuidInterface public const VALID_PATTERN = '^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$'; /** - * Version 1 (time-based) UUID + * Version 1 (Gregorian time) UUID * * @link https://tools.ietf.org/html/rfc4122#section-4.1.3 RFC 4122, § 4.1.3: Version */ @@ -156,15 +166,23 @@ class Uuid implements UuidInterface public const UUID_TYPE_HASH_SHA1 = 5; /** - * Version 6 (ordered-time) UUID + * @deprecated Use {@see Uuid::UUID_TYPE_REORDERED_TIME} instead. + */ + public const UUID_TYPE_PEABODY = 6; + + /** + * Version 6 (reordered time) UUID * - * This is named `UUID_TYPE_PEABODY`, since the specification is still in - * draft form, and the primary author/editor's name is Brad Peabody. + * @link https://datatracker.ietf.org/doc/html/draft-peabody-dispatch-new-uuid-format-04#section-5.1 UUID Version 6 + */ + public const UUID_TYPE_REORDERED_TIME = 6; + + /** + * Version 7 (Unix Epoch time) UUID * - * @link https://github.com/uuid6/uuid6-ietf-draft UUID version 6 IETF draft - * @link http://gh.peabody.io/uuidv6/ "Version 6" UUIDs + * @link https://datatracker.ietf.org/doc/html/draft-peabody-dispatch-new-uuid-format-04#section-5.2 UUID Version 7 */ - public const UUID_TYPE_PEABODY = 6; + public const UUID_TYPE_UNIX_TIME = 7; /** * DCE Security principal domain @@ -198,38 +216,19 @@ class Uuid implements UuidInterface self::DCE_DOMAIN_ORG => 'org', ]; - /** - * @var UuidFactoryInterface|null - */ - private static $factory = null; - - /** - * @var bool flag to detect if the UUID factory was replaced internally, which disables all optimizations - * for the default/happy path internal scenarios - */ - private static $factoryReplaced = false; - - /** - * @var CodecInterface - */ - protected $codec; - - /** - * The fields that make up this UUID - * - * @var Rfc4122FieldsInterface - */ - protected $fields; + private static ?UuidFactoryInterface $factory = null; /** - * @var NumberConverterInterface + * @var bool flag to detect if the UUID factory was replaced internally, + * which disables all optimizations for the default/happy path internal + * scenarios */ - protected $numberConverter; + private static bool $factoryReplaced = false; - /** - * @var TimeConverterInterface - */ - protected $timeConverter; + protected CodecInterface $codec; + protected NumberConverterInterface $numberConverter; + protected Rfc4122FieldsInterface $fields; + protected TimeConverterInterface $timeConverter; /** * Creates a universally unique identifier (UUID) from an array of fields @@ -302,19 +301,17 @@ public function __serialize(): array /** * Re-constructs the object from its serialized form * - * @param string $serialized The serialized PHP string to unserialize into + * @param string $data The serialized PHP string to unserialize into * a UuidInterface instance - * - * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint */ - public function unserialize($serialized): void + public function unserialize(string $data): void { - if (strlen($serialized) === 16) { + if (strlen($data) === 16) { /** @var Uuid $uuid */ - $uuid = self::getFactory()->fromBytes($serialized); + $uuid = self::getFactory()->fromBytes($data); } else { /** @var Uuid $uuid */ - $uuid = self::getFactory()->fromString($serialized); + $uuid = self::getFactory()->fromString($data); } $this->codec = $uuid->codec; @@ -324,7 +321,7 @@ public function unserialize($serialized): void } /** - * @param array{bytes: string} $data + * @param array{bytes?: string} $data */ public function __unserialize(array $data): void { @@ -384,6 +381,11 @@ public function getInteger(): IntegerObject return new IntegerObject($this->numberConverter->fromHex($this->getHex()->toString())); } + public function getUrn(): string + { + return 'urn:uuid:' . $this->toString(); + } + /** * @psalm-return non-empty-string */ @@ -532,6 +534,8 @@ public static function fromInteger(string $integer): UuidInterface * * @psalm-pure note: changing the internal factory is an edge case not covered by purity invariants, * but under constant factory setups, this method operates in functionally pure manners + * + * @psalm-assert-if-true non-empty-string $uuid */ public static function isValid(string $uuid): bool { @@ -539,7 +543,7 @@ public static function isValid(string $uuid): bool } /** - * Returns a version 1 (time-based) UUID from a host ID, sequence number, + * Returns a version 1 (Gregorian time) UUID from a host ID, sequence number, * and the current time * * @param Hexadecimal|int|string|null $node A 48-bit number representing the @@ -644,7 +648,7 @@ public static function uuid5($ns, string $name): UuidInterface } /** - * Returns a version 6 (ordered-time) UUID from a host ID, sequence number, + * Returns a version 6 (reordered time) UUID from a host ID, sequence number, * and the current time * * @param Hexadecimal|null $node A 48-bit number representing the hardware @@ -662,4 +666,28 @@ public static function uuid6( ): UuidInterface { return self::getFactory()->uuid6($node, $clockSeq); } + + /** + * Returns a version 7 (Unix Epoch time) UUID + * + * @param DateTimeInterface|null $dateTime An optional date/time from which + * to create the version 7 UUID. If not provided, the UUID is generated + * using the current date/time. + * + * @return UuidInterface A UuidInterface instance that represents a + * version 7 UUID + */ + public static function uuid7(?DateTimeInterface $dateTime = null): UuidInterface + { + $factory = self::getFactory(); + + if (method_exists($factory, 'uuid7')) { + /** @var UuidInterface */ + return $factory->uuid7($dateTime); + } + + throw new UnsupportedOperationException( + 'The provided factory does not support the uuid7() method', + ); + } } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/UuidFactory.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/UuidFactory.php index 6f2cea0..ab730f7 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/UuidFactory.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/UuidFactory.php @@ -18,13 +18,16 @@ use Ramsey\Uuid\Builder\UuidBuilderInterface; use Ramsey\Uuid\Codec\CodecInterface; use Ramsey\Uuid\Converter\NumberConverterInterface; +use Ramsey\Uuid\Converter\Time\UnixTimeConverter; use Ramsey\Uuid\Converter\TimeConverterInterface; use Ramsey\Uuid\Generator\DceSecurityGeneratorInterface; use Ramsey\Uuid\Generator\DefaultTimeGenerator; use Ramsey\Uuid\Generator\NameGeneratorInterface; use Ramsey\Uuid\Generator\RandomGeneratorInterface; use Ramsey\Uuid\Generator\TimeGeneratorInterface; +use Ramsey\Uuid\Generator\UnixTimeGenerator; use Ramsey\Uuid\Lazy\LazyUuidFromString; +use Ramsey\Uuid\Math\BrickMathCalculator; use Ramsey\Uuid\Provider\NodeProviderInterface; use Ramsey\Uuid\Provider\Time\FixedTimeProvider; use Ramsey\Uuid\Type\Hexadecimal; @@ -45,61 +48,26 @@ class UuidFactory implements UuidFactoryInterface { - /** - * @var CodecInterface - */ - private $codec; - - /** - * @var DceSecurityGeneratorInterface - */ - private $dceSecurityGenerator; - - /** - * @var NameGeneratorInterface - */ - private $nameGenerator; - - /** - * @var NodeProviderInterface - */ - private $nodeProvider; - - /** - * @var NumberConverterInterface - */ - private $numberConverter; - - /** - * @var RandomGeneratorInterface - */ - private $randomGenerator; - - /** - * @var TimeConverterInterface - */ - private $timeConverter; - - /** - * @var TimeGeneratorInterface - */ - private $timeGenerator; - - /** - * @var UuidBuilderInterface - */ - private $uuidBuilder; + private CodecInterface $codec; + private DceSecurityGeneratorInterface $dceSecurityGenerator; + private NameGeneratorInterface $nameGenerator; + private NodeProviderInterface $nodeProvider; + private NumberConverterInterface $numberConverter; + private RandomGeneratorInterface $randomGenerator; + private TimeConverterInterface $timeConverter; + private TimeGeneratorInterface $timeGenerator; + private TimeGeneratorInterface $unixTimeGenerator; + private UuidBuilderInterface $uuidBuilder; + private ValidatorInterface $validator; /** - * @var ValidatorInterface + * @var bool whether the feature set was provided from outside, or we can + * operate under "default" assumptions */ - private $validator; - - /** @var bool whether the feature set was provided from outside, or we can operate under "default" assumptions */ - private $isDefaultFeatureSet; + private bool $isDefaultFeatureSet; /** - * @param FeatureSet $features A set of available features in the current environment + * @param FeatureSet|null $features A set of available features in the current environment */ public function __construct(?FeatureSet $features = null) { @@ -117,6 +85,7 @@ public function __construct(?FeatureSet $features = null) $this->timeGenerator = $features->getTimeGenerator(); $this->uuidBuilder = $features->getBuilder(); $this->validator = $features->getValidator(); + $this->unixTimeGenerator = $features->getUnixTimeGenerator(); } /** @@ -342,7 +311,7 @@ public function fromDateTime( $bytes = $timeGenerator->generate($nodeHex, $clockSeq); - return $this->uuidFromBytesAndVersion($bytes, 1); + return $this->uuidFromBytesAndVersion($bytes, Uuid::UUID_TYPE_TIME); } /** @@ -352,7 +321,7 @@ public function uuid1($node = null, ?int $clockSeq = null): UuidInterface { $bytes = $this->timeGenerator->generate($node, $clockSeq); - return $this->uuidFromBytesAndVersion($bytes, 1); + return $this->uuidFromBytesAndVersion($bytes, Uuid::UUID_TYPE_TIME); } public function uuid2( @@ -368,7 +337,7 @@ public function uuid2( $clockSeq ); - return $this->uuidFromBytesAndVersion($bytes, 2); + return $this->uuidFromBytesAndVersion($bytes, Uuid::UUID_TYPE_DCE_SECURITY); } /** @@ -377,14 +346,14 @@ public function uuid2( */ public function uuid3($ns, string $name): UuidInterface { - return $this->uuidFromNsAndName($ns, $name, 3, 'md5'); + return $this->uuidFromNsAndName($ns, $name, Uuid::UUID_TYPE_HASH_MD5, 'md5'); } public function uuid4(): UuidInterface { $bytes = $this->randomGenerator->generate(16); - return $this->uuidFromBytesAndVersion($bytes, 4); + return $this->uuidFromBytesAndVersion($bytes, Uuid::UUID_TYPE_RANDOM); } /** @@ -393,7 +362,7 @@ public function uuid4(): UuidInterface */ public function uuid5($ns, string $name): UuidInterface { - return $this->uuidFromNsAndName($ns, $name, 5, 'sha1'); + return $this->uuidFromNsAndName($ns, $name, Uuid::UUID_TYPE_HASH_SHA1, 'sha1'); } public function uuid6(?Hexadecimal $node = null, ?int $clockSeq = null): UuidInterface @@ -412,7 +381,38 @@ public function uuid6(?Hexadecimal $node = null, ?int $clockSeq = null): UuidInt $v6Bytes = hex2bin(substr($v6, 1, 12) . '0' . substr($v6, -3)); $v6Bytes .= substr($bytes, 8); - return $this->uuidFromBytesAndVersion($v6Bytes, 6); + return $this->uuidFromBytesAndVersion($v6Bytes, Uuid::UUID_TYPE_REORDERED_TIME); + } + + /** + * Returns a version 7 (Unix Epoch time) UUID + * + * @param DateTimeInterface|null $dateTime An optional date/time from which + * to create the version 7 UUID. If not provided, the UUID is generated + * using the current date/time. + * + * @return UuidInterface A UuidInterface instance that represents a + * version 7 UUID + */ + public function uuid7(?DateTimeInterface $dateTime = null): UuidInterface + { + if ($dateTime !== null) { + $timeProvider = new FixedTimeProvider( + new Time($dateTime->format('U'), $dateTime->format('u')) + ); + + $timeGenerator = new UnixTimeGenerator( + new UnixTimeConverter(new BrickMathCalculator()), + $timeProvider, + $this->randomGenerator, + ); + + $bytes = $timeGenerator->generate(); + } else { + $bytes = $this->unixTimeGenerator->generate(); + } + + return $this->uuidFromBytesAndVersion($bytes, Uuid::UUID_TYPE_UNIX_TIME); } /** @@ -447,8 +447,12 @@ public function uuid(string $bytes): UuidInterface * * @psalm-pure */ - private function uuidFromNsAndName($ns, string $name, int $version, string $hashAlgorithm): UuidInterface - { + private function uuidFromNsAndName( + UuidInterface | string $ns, + string $name, + int $version, + string $hashAlgorithm + ): UuidInterface { if (!($ns instanceof UuidInterface)) { $ns = $this->fromString($ns); } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/UuidFactoryInterface.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/UuidFactoryInterface.php index 468cc63..d99fc9d 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/UuidFactoryInterface.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/UuidFactoryInterface.php @@ -25,6 +25,61 @@ */ interface UuidFactoryInterface { + /** + * Creates a UUID from a byte string + * + * @param string $bytes A binary string + * + * @return UuidInterface A UuidInterface instance created from a binary + * string representation + * + * @psalm-pure + */ + public function fromBytes(string $bytes): UuidInterface; + + /** + * Creates a UUID from a DateTimeInterface instance + * + * @param DateTimeInterface $dateTime The date and time + * @param Hexadecimal|null $node A 48-bit number representing the hardware + * address + * @param int|null $clockSeq A 14-bit number used to help avoid duplicates + * that could arise when the clock is set backwards in time or if the + * node ID changes + * + * @return UuidInterface A UuidInterface instance that represents a + * version 1 UUID created from a DateTimeInterface instance + */ + public function fromDateTime( + DateTimeInterface $dateTime, + ?Hexadecimal $node = null, + ?int $clockSeq = null + ): UuidInterface; + + /** + * Creates a UUID from a 128-bit integer string + * + * @param string $integer String representation of 128-bit integer + * + * @return UuidInterface A UuidInterface instance created from the string + * representation of a 128-bit integer + * + * @psalm-pure + */ + public function fromInteger(string $integer): UuidInterface; + + /** + * Creates a UUID from the string standard representation + * + * @param string $uuid A hexadecimal string + * + * @return UuidInterface A UuidInterface instance created from a hexadecimal + * string representation + * + * @psalm-pure + */ + public function fromString(string $uuid): UuidInterface; + /** * Returns the validator to use for the factory * @@ -33,7 +88,7 @@ interface UuidFactoryInterface public function getValidator(): ValidatorInterface; /** - * Returns a version 1 (time-based) UUID from a host ID, sequence number, + * Returns a version 1 (Gregorian time) UUID from a host ID, sequence number, * and the current time * * @param Hexadecimal|int|string|null $node A 48-bit number representing the @@ -111,7 +166,7 @@ public function uuid4(): UuidInterface; public function uuid5($ns, string $name): UuidInterface; /** - * Returns a version 6 (ordered-time) UUID from a host ID, sequence number, + * Returns a version 6 (reordered time) UUID from a host ID, sequence number, * and the current time * * @param Hexadecimal|null $node A 48-bit number representing the hardware @@ -124,59 +179,4 @@ public function uuid5($ns, string $name): UuidInterface; * version 6 UUID */ public function uuid6(?Hexadecimal $node = null, ?int $clockSeq = null): UuidInterface; - - /** - * Creates a UUID from a byte string - * - * @param string $bytes A binary string - * - * @return UuidInterface A UuidInterface instance created from a binary - * string representation - * - * @psalm-pure - */ - public function fromBytes(string $bytes): UuidInterface; - - /** - * Creates a UUID from the string standard representation - * - * @param string $uuid A hexadecimal string - * - * @return UuidInterface A UuidInterface instance created from a hexadecimal - * string representation - * - * @psalm-pure - */ - public function fromString(string $uuid): UuidInterface; - - /** - * Creates a UUID from a 128-bit integer string - * - * @param string $integer String representation of 128-bit integer - * - * @return UuidInterface A UuidInterface instance created from the string - * representation of a 128-bit integer - * - * @psalm-pure - */ - public function fromInteger(string $integer): UuidInterface; - - /** - * Creates a UUID from a DateTimeInterface instance - * - * @param DateTimeInterface $dateTime The date and time - * @param Hexadecimal|null $node A 48-bit number representing the hardware - * address - * @param int|null $clockSeq A 14-bit number used to help avoid duplicates - * that could arise when the clock is set backwards in time or if the - * node ID changes - * - * @return UuidInterface A UuidInterface instance that represents a - * version 1 UUID created from a DateTimeInterface instance - */ - public function fromDateTime( - DateTimeInterface $dateTime, - ?Hexadecimal $node = null, - ?int $clockSeq = null - ): UuidInterface; } diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/UuidInterface.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/UuidInterface.php index f22eb0f..5f41675 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/UuidInterface.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/UuidInterface.php @@ -83,6 +83,14 @@ public function getHex(): Hexadecimal; */ public function getInteger(): IntegerObject; + /** + * Returns the string standard representation of the UUID as a URN + * + * @link http://en.wikipedia.org/wiki/Uniform_Resource_Name Uniform Resource Name + * @link https://tools.ietf.org/html/rfc4122#section-3 RFC 4122, § 3: Namespace Registration Template + */ + public function getUrn(): string; + /** * Returns the string standard representation of the UUID * diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/functions.php b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/functions.php index f5df148..fa80f4e 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/functions.php +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/ramsey/uuid/src/functions.php @@ -15,17 +15,18 @@ namespace Ramsey\Uuid; +use DateTimeInterface; use Ramsey\Uuid\Type\Hexadecimal; use Ramsey\Uuid\Type\Integer as IntegerObject; /** - * Returns a version 1 (time-based) UUID from a host ID, sequence number, + * Returns a version 1 (Gregorian time) UUID from a host ID, sequence number, * and the current time * * @param Hexadecimal|int|string|null $node A 48-bit number representing the * hardware address; this number may be represented as an integer or a * hexadecimal string - * @param int $clockSeq A 14-bit number used to help avoid duplicates that + * @param int|null $clockSeq A 14-bit number used to help avoid duplicates that * could arise when the clock is set backwards in time or if the node ID * changes * @@ -106,12 +107,12 @@ function v5($ns, string $name): string } /** - * Returns a version 6 (ordered-time) UUID from a host ID, sequence number, + * Returns a version 6 (reordered time) UUID from a host ID, sequence number, * and the current time * * @param Hexadecimal|null $node A 48-bit number representing the hardware * address - * @param int $clockSeq A 14-bit number used to help avoid duplicates that + * @param int|null $clockSeq A 14-bit number used to help avoid duplicates that * could arise when the clock is set backwards in time or if the node ID * changes * @@ -121,3 +122,17 @@ function v6(?Hexadecimal $node = null, ?int $clockSeq = null): string { return Uuid::uuid6($node, $clockSeq)->toString(); } + +/** + * Returns a version 7 (Unix Epoch time) UUID + * + * @param DateTimeInterface|null $dateTime An optional date/time from which + * to create the version 7 UUID. If not provided, the UUID is generated + * using the current date/time. + * + * @return non-empty-string Version 7 UUID as a string + */ +function v7(?DateTimeInterface $dateTime = null): string +{ + return Uuid::uuid7($dateTime)->toString(); +} diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/symfony/polyfill-php81/README.md b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/symfony/polyfill-php81/README.md index 5ef61be..7d8dd19 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/symfony/polyfill-php81/README.md +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/symfony/polyfill-php81/README.md @@ -4,11 +4,12 @@ Symfony Polyfill / Php81 This component provides features added to PHP 8.1 core: - [`array_is_list`](https://php.net/array_is_list) -- [`MYSQLI_REFRESH_REPLICA`](https://www.php.net/manual/en/mysqli.constants.php#constantmysqli-refresh-replica) constant +- [`enum_exists`](https://php.net/enum-exists) +- [`MYSQLI_REFRESH_REPLICA`](https://php.net/mysqli.constants#constantmysqli-refresh-replica) constant - [`ReturnTypeWillChange`](https://wiki.php.net/rfc/internal_method_return_types) More information can be found in the -[main Polyfill README](https://github.com/symfony/polyfill/blob/master/README.md). +[main Polyfill README](https://github.com/symfony/polyfill/blob/main/README.md). License ======= diff --git a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/symfony/polyfill-php81/composer.json b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/symfony/polyfill-php81/composer.json index c39ccf4..014da78 100644 --- a/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/symfony/polyfill-php81/composer.json +++ b/plugnmeet/helpers/libs/plugnmeet-sdk-php/vendor/symfony/polyfill-php81/composer.json @@ -26,7 +26,7 @@ "minimum-stability": "dev", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.26-dev" }, "thanks": { "name": "symfony/polyfill", diff --git a/plugnmeet/plugnmeet.php b/plugnmeet/plugnmeet.php index bb90308..783d4b9 100755 --- a/plugnmeet/plugnmeet.php +++ b/plugnmeet/plugnmeet.php @@ -15,7 +15,7 @@ * Plugin Name: Plug-N-Meet web conference integration * Plugin URI: https://github.com/mynaparrot/plugNmeet-WordPress * Description: Plug-N-Meet web conference integration with WordPress - * Version: 1.0.13 + * Version: 1.0.14 * Author: Jibon L. Costa * Requires at least: 5.9 * Requires PHP: 7.4.0 @@ -37,7 +37,7 @@ * Start at version 1.0.0 and use SemVer - https://semver.org * Rename this for your plugin and update it as you release new versions. */ -define('PLUGNMEET_VERSION', '1.0.13'); +define('PLUGNMEET_VERSION', '1.0.14'); /** * Define the Plugin basename