original_string: public function addGuide($type, $href){
  		if( !$this->dom->guide->count() ){
  			$guide = $this->dom->addChild('guide');
  		}else{
  			$guide = $this->dom->guide;
  		}
  		$ref = $guide->addChild('reference');
  		$ref['type'] = $type;
  		$ref['href'] = $href;
  		return $ref;
  	}
code: public function addGuide($type, $href){
  		if( !$this->dom->guide->count() ){
  			$guide = $this->dom->addChild('guide');
  		}else{
  			$guide = $this->dom->guide;
  		}
  		$ref = $guide->addChild('reference');
  		$ref['type'] = $type;
  		$ref['href'] = $href;
  		return $ref;
  	}
code_tokens: public function addGuide ( $ type , $ href ) { if ( ! $ this -> dom -> guide -> count ( ) ) { $ guide = $ this -> dom -> addChild ( 'guide' ) ; } else { $ guide = $ this -> dom -> guide ; } $ ref = $ guide -> addChild ( 'reference' ) ; $ ref [ 'type' ] = $ type ; $ ref [ 'href' ] = $ href ; return $ ref ; }
docstring: Add guide element
  
  This `guide` element is not nescesary for ePub 3.0,
  but KF8(Kindle) still requires it.
  
  @see http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6
  @param string $type
  @param string $href
  
  @return mixed
docstring_tokens: Add guide element