original_string: public function renameIfExists(UploadedFile $file)
      {
          if ($this->storage->exists("{$this->getDirectory()}/$this->name")) {
              $this->name = $this->generateUniqueName($file);
          }
      }
code: public function renameIfExists(UploadedFile $file)
      {
          if ($this->storage->exists("{$this->getDirectory()}/$this->name")) {
              $this->name = $this->generateUniqueName($file);
          }
      }
code_tokens: public function renameIfExists ( UploadedFile $ file ) { if ( $ this -> storage -> exists ( "{$this->getDirectory()}/$this->name" ) ) { $ this -> name = $ this -> generateUniqueName ( $ file ) ; } }
docstring: If name already exists, rename it.
  
  @param $file
  
  @return void
docstring_tokens: If name already exists rename it .