original_string: public function getFile($name)
      {
          if (!isset($this->files)) {
              $files = $this->getUploadedFiles();
              foreach ($files as $file) {
                  $key = $file->getKey();
                  if (isset($key)) {
                      $this->files[$key] = $file;
                  } else {
                      $this->files[] = $file;
                  }
              }
          }
          if (isset($this->files[$name])) {
              return $this->files[$name];
          } else {
              throw new \InvalidArgumentException("Upload file '$name' is empty");
          }
      }
code: public function getFile($name)
      {
          if (!isset($this->files)) {
              $files = $this->getUploadedFiles();
              foreach ($files as $file) {
                  $key = $file->getKey();
                  if (isset($key)) {
                      $this->files[$key] = $file;
                  } else {
                      $this->files[] = $file;
                  }
              }
          }
          if (isset($this->files[$name])) {
              return $this->files[$name];
          } else {
              throw new \InvalidArgumentException("Upload file '$name' is empty");
          }
      }
code_tokens: public function getFile ( $ name ) { if ( ! isset ( $ this -> files ) ) { $ files = $ this -> getUploadedFiles ( ) ; foreach ( $ files as $ file ) { $ key = $ file -> getKey ( ) ; if ( isset ( $ key ) ) { $ this -> files [ $ key ] = $ file ; } else { $ this -> files [ ] = $ file ; } } } if ( isset ( $ this -> files [ $ name ] ) ) { return $ this -> files [ $ name ] ; } else { throw new \ InvalidArgumentException ( "Upload file '$name' is empty" ) ; } }
docstring: Gets upload file object by name
  
  @return Phalcon\Http\Request\File
docstring_tokens: Gets upload file object by name