original_string: public function getNextSibling()
  	{
  		$next = null;
  		
  		// if this element has an index
  		if (false !== ($index = $this->getIndex())) {
  			// if this element has a next sibling
  			if ($this->parent->hasChild($index + 1)) {
  				$next = $this->parent->getChild($index + 1);
  			}
  		}
  			
  		return $next;
  	}
code: public function getNextSibling()
  	{
  		$next = null;
  		
  		// if this element has an index
  		if (false !== ($index = $this->getIndex())) {
  			// if this element has a next sibling
  			if ($this->parent->hasChild($index + 1)) {
  				$next = $this->parent->getChild($index + 1);
  			}
  		}
  			
  		return $next;
  	}
code_tokens: public function getNextSibling ( ) { $ next = null ; // if this element has an index if ( false !== ( $ index = $ this -> getIndex ( ) ) ) { // if this element has a next sibling if ( $ this -> parent -> hasChild ( $ index + 1 ) ) { $ next = $ this -> parent -> getChild ( $ index + 1 ) ; } } return $ next ; }
docstring: Returns this element's next sibling or null if no sibling exists
  
  @return  Jstewmc\Rtf\Element\Element|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
  @since  0.1.0
docstring_tokens: Returns this element s next sibling or null if no sibling exists