src/JoliTypo/StateBag.php
public function fixSiblingNode($key, $new_content)
    {
        $storedSibling = $this->getSiblingNode($key);

        if ($storedSibling) {
            $storedSibling->getParent()->replaceChild($storedSibling->getDocument()->createTextNode($new_content), $storedSibling->getNode());
            unset($this->siblingNode[$key][$this->currentDepth]);
        }
    }
public function fixSiblingNode($key, $new_content)
    {
        $storedSibling = $this->getSiblingNode($key);

        if ($storedSibling) {
            $storedSibling->getParent()->replaceChild($storedSibling->getDocument()->createTextNode($new_content), $storedSibling->getNode());
            unset($this->siblingNode[$key][$this->currentDepth]);
        }
    }
public function fixSiblingNode ( $ key , $ new_content ) { $ storedSibling = $ this -> getSiblingNode ( $ key ) ; if ( $ storedSibling ) { $ storedSibling -> getParent ( ) -> replaceChild ( $ storedSibling -> getDocument ( ) -> createTextNode ( $ new_content ) , $ storedSibling -> getNode ( ) ) ; unset ( $ this -> siblingNode [ $ key ] [ $ this -> currentDepth ] ) ; } }
Replace and destroy the content of a stored Node.

@param string $key
@param string $new_content
Replace and destroy the content of a stored Node .