From e04a108c06b46d3231d6473d818b5b8b51965adc Mon Sep 17 00:00:00 2001 From: Philipp Bammes <8144115+tyrann0us@users.noreply.github.com> Date: Thu, 28 Nov 2024 09:38:40 +0100 Subject: [PATCH] fix: reintroduce whitespace after type casting Signed-off-by: Philipp Bammes <8144115+tyrann0us@users.noreply.github.com> --- src/OutputFilter/AttributesOutputFilter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OutputFilter/AttributesOutputFilter.php b/src/OutputFilter/AttributesOutputFilter.php index dc4e87b..20d9eed 100644 --- a/src/OutputFilter/AttributesOutputFilter.php +++ b/src/OutputFilter/AttributesOutputFilter.php @@ -52,7 +52,7 @@ public function __invoke(string $html, Asset $asset): string protected function applyAttributes(\WP_HTML_Tag_Processor $script, array $attributes): void { foreach ($attributes as $key => $value) { - $key = esc_attr((string)$key); + $key = esc_attr((string) $key); if ((string) $script->get_attribute($key)) { continue; } @@ -61,7 +61,7 @@ protected function applyAttributes(\WP_HTML_Tag_Processor $script, array $attrib } $value = is_bool($value) ? esc_attr($key) - : esc_attr((string)$value); + : esc_attr((string) $value); $script->set_attribute($key, $value); }