original_string: protected function move()
      {
          if ($this->compress) {
              $gzip = new Compress($this->config);
              $gzip->pack($this->temp, $this->config->file);
              unlink($this->temp);
              return true;
          }
  
          if (@rename($this->temp, $this->config->file)) {
              return true;
          }
  
          if (@copy($this->temp, $this->config->file) && unlink($this->temp)) {
              return true;
          }
  
          throw new Exception('Unable to move the temporary file.');
      }
code: protected function move()
      {
          if ($this->compress) {
              $gzip = new Compress($this->config);
              $gzip->pack($this->temp, $this->config->file);
              unlink($this->temp);
              return true;
          }
  
          if (@rename($this->temp, $this->config->file)) {
              return true;
          }
  
          if (@copy($this->temp, $this->config->file) && unlink($this->temp)) {
              return true;
          }
  
          throw new Exception('Unable to move the temporary file.');
      }
code_tokens: protected function move ( ) { if ( $ this -> compress ) { $ gzip = new Compress ( $ this -> config ) ; $ gzip -> pack ( $ this -> temp , $ this -> config -> file ) ; unlink ( $ this -> temp ) ; return true ; } if ( @ rename ( $ this -> temp , $ this -> config -> file ) ) { return true ; } if ( @ copy ( $ this -> temp , $ this -> config -> file ) && unlink ( $ this -> temp ) ) { return true ; } throw new Exception ( 'Unable to move the temporary file.' ) ; }
docstring: Moves a temporary file to the final location.
  
  @return bool
  @throws Exception
docstring_tokens: Moves a temporary file to the final location .