diff --git a/core/modules/filter/src/Plugin/Filter/FilterCaption.php b/core/modules/filter/src/Plugin/Filter/FilterCaption.php index 2151dac..627379e 100644 --- a/core/modules/filter/src/Plugin/Filter/FilterCaption.php +++ b/core/modules/filter/src/Plugin/Filter/FilterCaption.php @@ -76,13 +76,13 @@ public function process($text, $langcode) { ->item(0) ->childNodes; - foreach($updated_nodes as $updated_node) { + foreach ($updated_nodes as $updated_node) { // Import the updated node from the new DOMDocument into the original // one, importing also the child nodes of the updated node. $updated_node = $dom->importNode($updated_node, TRUE); $node->parentNode->insertBefore($updated_node, $node); } - // Finally, remove the original data-caption node + // Finally, remove the original data-caption node. $node->parentNode->removeChild($node); }