original_string: public function toFile()
      {
  
  
          if ($this->type == "jpg")
  
      {
              $this->toJpg();
  
          } elseif ($this->type == "png") {
  
              $this->toPng();
  
          } elseif ($this->type == "gif") {
  
              $this->toGif();
          }
  
      }
code: public function toFile()
      {
  
  
          if ($this->type == "jpg")
  
      {
              $this->toJpg();
  
          } elseif ($this->type == "png") {
  
              $this->toPng();
  
          } elseif ($this->type == "gif") {
  
              $this->toGif();
          }
  
      }
code_tokens: public function toFile ( ) { if ( $ this -> type == "jpg" ) { $ this -> toJpg ( ) ; } elseif ( $ this -> type == "png" ) { $ this -> toPng ( ) ; } elseif ( $ this -> type == "gif" ) { $ this -> toGif ( ) ; } }
docstring: Saves the edited image as a file based on the original images file type
docstring_tokens: Saves the edited image as a file based on the original images file type