From 852260c68e52361a6f7e7cde502fa0c3025e15ff Mon Sep 17 00:00:00 2001 From: Awilum Date: Wed, 25 May 2022 18:16:19 +0300 Subject: [PATCH] feat(shortcodes): fix logic for `uuid` shortcode and upd tests --- src/flextype/core/Parsers/Shortcodes/UuidShortcode.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/flextype/core/Parsers/Shortcodes/UuidShortcode.php b/src/flextype/core/Parsers/Shortcodes/UuidShortcode.php index 5a979412..f7635bc1 100644 --- a/src/flextype/core/Parsers/Shortcodes/UuidShortcode.php +++ b/src/flextype/core/Parsers/Shortcodes/UuidShortcode.php @@ -18,13 +18,12 @@ namespace Flextype\Parsers\Shortcodes; use Thunder\Shortcode\Shortcode\ShortcodeInterface; use Ramsey\Uuid\Uuid; -use function app; use function parsers; use function registry; // Shortcode: uuid // Usage: (uuid) (uuid:4) -parsers()->shortcodes()->addHandler('uuid', static function () { +parsers()->shortcodes()->addHandler('uuid', static function (ShortcodeInterface $s) { if (! registry()->get('flextype.settings.parsers.shortcodes.shortcodes.uuid.enabled')) { return ''; }