From 2dbce3ed7c6317bba25a65a3f02afb870fa96163 Mon Sep 17 00:00:00 2001 From: Tim Kelty Date: Mon, 18 Mar 2024 16:51:56 -0400 Subject: [PATCH] Move desc to property --- src/config/GeneralConfig.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/config/GeneralConfig.php b/src/config/GeneralConfig.php index 1d2b984021f..5f2ee836a5f 100644 --- a/src/config/GeneralConfig.php +++ b/src/config/GeneralConfig.php @@ -2555,6 +2555,16 @@ class GeneralConfig extends BaseConfig * ``` * ::: * + * Alternatively, this maybe set to a closure that accepts a [[\enshrined\svgSanitize\Sanitizer]] instance and returns + * a [[\enshrined\svgSanitize\Sanitizer]] instance further customization. + * + * ```php + * ->sanitizeSvgUploads(function(\enshrined\svgSanitize\Sanitizer $sanitizer): \enshrined\svgSanitize\Sanitizer { + * $sanitizer->removeRemoteReferences(true); + * return $sanitizer; + * }) + * ``` + * * @group Security */ public bool|Closure $sanitizeSvgUploads = true; @@ -5953,16 +5963,6 @@ public function sameSiteCookieValue(?string $value): self * ->sanitizeSvgUploads(false) * ``` * - * Alternatively, this maybe set to a closure that accepts a [[\enshrined\svgSanitize\Sanitizer]] instance and returns - * a [[\enshrined\svgSanitize\Sanitizer]] instance further customization. - * - * ```php - * ->sanitizeSvgUploads(function(\enshrined\svgSanitize\Sanitizer $sanitizer): \enshrined\svgSanitize\Sanitizer { - * $sanitizer->removeRemoteReferences(true); - * return $sanitizer; - * }) - * ``` - * * @group Security * @param bool|Closure(Sanitizer):Sanitizer $value * @return self