original_string: protected function convertUploadedFiles(array $files)
      {
          $fileObjects = [];
          
          foreach ($files as $fieldName => $file) {
              if ($file instanceof UploadedFileInterface) {
                  $fileObjects[$fieldName] = $file;
              } elseif (!isset($file['tmp_name']) && !isset($file['error'])) {
                  $fileObjects[$fieldName] = $this->convertUploadedFiles($file);
              } else {
                  $fileObjects[$fieldName] = new UploadedFile($file);
              }
          }
          
          return $fileObjects;
      }
code: protected function convertUploadedFiles(array $files)
      {
          $fileObjects = [];
          
          foreach ($files as $fieldName => $file) {
              if ($file instanceof UploadedFileInterface) {
                  $fileObjects[$fieldName] = $file;
              } elseif (!isset($file['tmp_name']) && !isset($file['error'])) {
                  $fileObjects[$fieldName] = $this->convertUploadedFiles($file);
              } else {
                  $fileObjects[$fieldName] = new UploadedFile($file);
              }
          }
          
          return $fileObjects;
      }
code_tokens: protected function convertUploadedFiles ( array $ files ) { $ fileObjects = [ ] ; foreach ( $ files as $ fieldName => $ file ) { if ( $ file instanceof UploadedFileInterface ) { $ fileObjects [ $ fieldName ] = $ file ; } elseif ( ! isset ( $ file [ 'tmp_name' ] ) && ! isset ( $ file [ 'error' ] ) ) { $ fileObjects [ $ fieldName ] = $ this -> convertUploadedFiles ( $ file ) ; } else { $ fileObjects [ $ fieldName ] = new UploadedFile ( $ file ) ; } } return $ fileObjects ; }
docstring: Convert a list of uploaded files to a Jasny PSR-7 uploaded files
  
  @param array $files
  @return UploadedFile[]|array
docstring_tokens: Convert a list of uploaded files to a Jasny PSR - 7 uploaded files