original_string: protected function make()
    {
      if ( !$this->file && strpos($this->path,'http://') === 0 ){
        $d = getcwd();
        chdir(__DIR__);
        chdir('../tmp');
        $f = tempnam('.','image');
        try{
          $c = file_get_contents($this->path.$this->name);
          if ( file_put_contents($f, $c) ){
            if ( substr($this->name,-1) == '/' ){
              $this->name = substr($this->name,0,-1);
            }
            chmod($f, 0644);
            $this->file = $f;
            $this->path = getcwd();
          }
          else{
            $this->error = 'Impossible to get the file '.$this->path.$this->name;
          }
        }
        catch ( Error $e )
          { $this->error = 'Impossible to get the file '.$this->path.$this->name; }
        chdir($d);
      }
      return $this;
    }
code: protected function make()
    {
      if ( !$this->file && strpos($this->path,'http://') === 0 ){
        $d = getcwd();
        chdir(__DIR__);
        chdir('../tmp');
        $f = tempnam('.','image');
        try{
          $c = file_get_contents($this->path.$this->name);
          if ( file_put_contents($f, $c) ){
            if ( substr($this->name,-1) == '/' ){
              $this->name = substr($this->name,0,-1);
            }
            chmod($f, 0644);
            $this->file = $f;
            $this->path = getcwd();
          }
          else{
            $this->error = 'Impossible to get the file '.$this->path.$this->name;
          }
        }
        catch ( Error $e )
          { $this->error = 'Impossible to get the file '.$this->path.$this->name; }
        chdir($d);
      }
      return $this;
    }
code_tokens: protected function make ( ) { if ( ! $ this -> file && strpos ( $ this -> path , 'http://' ) === 0 ) { $ d = getcwd ( ) ; chdir ( __DIR__ ) ; chdir ( '../tmp' ) ; $ f = tempnam ( '.' , 'image' ) ; try { $ c = file_get_contents ( $ this -> path . $ this -> name ) ; if ( file_put_contents ( $ f , $ c ) ) { if ( substr ( $ this -> name , - 1 ) == '/' ) { $ this -> name = substr ( $ this -> name , 0 , - 1 ) ; } chmod ( $ f , 0644 ) ; $ this -> file = $ f ; $ this -> path = getcwd ( ) ; } else { $ this -> error = 'Impossible to get the file ' . $ this -> path . $ this -> name ; } } catch ( Error $ e ) { $ this -> error = 'Impossible to get the file ' . $ this -> path . $ this -> name ; } chdir ( $ d ) ; } return $ this ; }
docstring: Creates a temporary file in tmp directory.
  
  @todo of adjusting
  @return file
docstring_tokens: Creates a temporary file in tmp directory .