original_string: protected function convertFileInformation($file)
      {
          if ($file instanceof UploadedFile) {
              return $file;
          }
  
          $file = $this->fixPhpFilesArray($file);
          if (\is_array($file)) {
              $keys = array_keys($file);
              sort($keys);
  
              if ($keys == self::$fileKeys) {
                  if (UPLOAD_ERR_NO_FILE == $file['error']) {
                      $file = null;
                  } else {
                      $file = new UploadedFile($file['tmp_name'], $file['name'], $file['type'], $file['error']);
                  }
              } else {
                  $file = array_map([$this, 'convertFileInformation'], $file);
                  if (array_keys($keys) === $keys) {
                      $file = array_filter($file);
                  }
              }
          }
  
          return $file;
      }
code: protected function convertFileInformation($file)
      {
          if ($file instanceof UploadedFile) {
              return $file;
          }
  
          $file = $this->fixPhpFilesArray($file);
          if (\is_array($file)) {
              $keys = array_keys($file);
              sort($keys);
  
              if ($keys == self::$fileKeys) {
                  if (UPLOAD_ERR_NO_FILE == $file['error']) {
                      $file = null;
                  } else {
                      $file = new UploadedFile($file['tmp_name'], $file['name'], $file['type'], $file['error']);
                  }
              } else {
                  $file = array_map([$this, 'convertFileInformation'], $file);
                  if (array_keys($keys) === $keys) {
                      $file = array_filter($file);
                  }
              }
          }
  
          return $file;
      }
code_tokens: protected function convertFileInformation ( $ file ) { if ( $ file instanceof UploadedFile ) { return $ file ; } $ file = $ this -> fixPhpFilesArray ( $ file ) ; if ( \ is_array ( $ file ) ) { $ keys = array_keys ( $ file ) ; sort ( $ keys ) ; if ( $ keys == self :: $ fileKeys ) { if ( UPLOAD_ERR_NO_FILE == $ file [ 'error' ] ) { $ file = null ; } else { $ file = new UploadedFile ( $ file [ 'tmp_name' ] , $ file [ 'name' ] , $ file [ 'type' ] , $ file [ 'error' ] ) ; } } else { $ file = array_map ( [ $ this , 'convertFileInformation' ] , $ file ) ; if ( array_keys ( $ keys ) === $ keys ) { $ file = array_filter ( $ file ) ; } } } return $ file ; }
docstring: Converts uploaded files to UploadedFile instances.
  
  @param array|UploadedFile $file A (multi-dimensional) array of uploaded file information
  
  @return UploadedFile[]|UploadedFile|null A (multi-dimensional) array of UploadedFile instances
docstring_tokens: Converts uploaded files to UploadedFile instances .