original_string: protected function ensureAppended()
      {
          if (!$this->_appended) {
              $this->_parentElement->getDOM()->appendChild($this->_element);
              $this->_appended = true;
              $this->_parentElement->ensureAppended();
          }
      }
code: protected function ensureAppended()
      {
          if (!$this->_appended) {
              $this->_parentElement->getDOM()->appendChild($this->_element);
              $this->_appended = true;
              $this->_parentElement->ensureAppended();
          }
      }
code_tokens: protected function ensureAppended ( ) { if ( ! $ this -> _appended ) { $ this -> _parentElement -> getDOM ( ) -> appendChild ( $ this -> _element ) ; $ this -> _appended = true ; $ this -> _parentElement -> ensureAppended ( ) ; } }
docstring: Appends this element to its parent if necessary.
  
  @return void
docstring_tokens: Appends this element to its parent if necessary .