original_string: public function saveAs($extension = NULL)
  	{
  		$extension = (!is_null($extension) ? $extension : $this->extension);
  
  		$converter = $this->extracter->converter();
  		$converter->setExtension($extension);
  		$data = $converter->toNative($this->params);
  	
  		// We need to rename the file's extension
  		$this->rename(NULL, $extension);
  
  		$this->fs->dumpFile($this->file, $data);	
  	}
code: public function saveAs($extension = NULL)
  	{
  		$extension = (!is_null($extension) ? $extension : $this->extension);
  
  		$converter = $this->extracter->converter();
  		$converter->setExtension($extension);
  		$data = $converter->toNative($this->params);
  	
  		// We need to rename the file's extension
  		$this->rename(NULL, $extension);
  
  		$this->fs->dumpFile($this->file, $data);	
  	}
code_tokens: public function saveAs ( $ extension = NULL ) { $ extension = ( ! is_null ( $ extension ) ? $ extension : $ this -> extension ) ; $ converter = $ this -> extracter -> converter ( ) ; $ converter -> setExtension ( $ extension ) ; $ data = $ converter -> toNative ( $ this -> params ) ; // We need to rename the file's extension $ this -> rename ( NULL , $ extension ) ; $ this -> fs -> dumpFile ( $ this -> file , $ data ) ; }
docstring: Save as a different extension
  
  @param String $extension
  @return void
  @author Dan Cox
docstring_tokens: Save as a different extension