From 359f6c41575185ab3903461d3b8360352964fb27 Mon Sep 17 00:00:00 2001 From: ORelio Date: Thu, 20 Mar 2025 15:28:24 +0100 Subject: [PATCH] FeedExpander: Code linting --- lib/FeedExpander.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/FeedExpander.php b/lib/FeedExpander.php index edfba995..b9443caf 100644 --- a/lib/FeedExpander.php +++ b/lib/FeedExpander.php @@ -71,15 +71,12 @@ abstract class FeedExpander extends BridgeAbstract // Remove extra content at the end of the document, if any (#4485) // First retrieve tag name of root node, which is the first node following in xml string and strip anything beyond that. - if (preg_match('/(?:<\?xml[^>]*\?>[^<]*<)([^ "\'>]+)/i', $xmlString, $matches) === 1) - { + if (preg_match('/(?:<\?xml[^>]*\?>[^<]*<)([^ "\'>]+)/i', $xmlString, $matches) === 1) { $root_node_tag = $matches[1]; $last_closing_occurrence = strripos($xmlString, '', $last_closing_occurrence); - if ($closing_node_end !== false) - { + if ($closing_node_end !== false) { $xmlString = substr($xmlString, 0, $closing_node_end + 1); } }