original_string: public function getNextText()
  	{
  		$text = null;
  		
  		// get the element's next sibling element
  		$next = $this->getNextSibling();
  		
  		// while the next sibling element exists and is not a text element
  		while ($next !== null && ! $next instanceof \Jstewmc\Rtf\Element\Text) {
  			$next = $next->getNextSibling();
  		}
  		
  		// if a next text element exists
  		if ($next !== null && $next instanceof \Jstewmc\Rtf\Element\Text) {
  			$text = $next;
  		}
  		
  		return $text;
  	}
code: public function getNextText()
  	{
  		$text = null;
  		
  		// get the element's next sibling element
  		$next = $this->getNextSibling();
  		
  		// while the next sibling element exists and is not a text element
  		while ($next !== null && ! $next instanceof \Jstewmc\Rtf\Element\Text) {
  			$next = $next->getNextSibling();
  		}
  		
  		// if a next text element exists
  		if ($next !== null && $next instanceof \Jstewmc\Rtf\Element\Text) {
  			$text = $next;
  		}
  		
  		return $text;
  	}
code_tokens: public function getNextText ( ) { $ text = null ; // get the element's next sibling element $ next = $ this -> getNextSibling ( ) ; // while the next sibling element exists and is not a text element while ( $ next !== null && ! $ next instanceof \ Jstewmc \ Rtf \ Element \ Text ) { $ next = $ next -> getNextSibling ( ) ; } // if a next text element exists if ( $ next !== null && $ next instanceof \ Jstewmc \ Rtf \ Element \ Text ) { $ text = $ next ; } return $ text ; }
docstring: Returns this element's next text element or null if no next text element
  exists
  
  @return  Jstewmc\Rtf\Element\Text|null
  @throws  BadMethodCallException  if the element doesn't have a parent
  @throws  BadMethodCallException  if the element's parent doesn't have children
  @throws  BadMethodCallException  if the element is not a child of its parent
docstring_tokens: Returns this element s next text element or null if no next text element exists