diff --git a/src/flextype/core/Parsers/Shortcodes/ConstShortcode.php b/src/flextype/core/Parsers/Shortcodes/ConstShortcode.php index 98df13d9..00137f65 100644 --- a/src/flextype/core/Parsers/Shortcodes/ConstShortcode.php +++ b/src/flextype/core/Parsers/Shortcodes/ConstShortcode.php @@ -28,12 +28,7 @@ parsers()->shortcodes()->addHandler('const', static function (ShortcodeInterface if ($s->getBBCode() !== null) { $const = parsers()->shortcodes()->parse($s->getBBCode()); - - if (defined($const)) { - return constant($const); - } else { - return ''; - } + return defined($const) ? constant($const) : ''; } return '';