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); } }