original_string: protected function saveToTempFile()
      {
          // Convert uploaded file to an array
          $aFiles = [];
          foreach($this->aUserFiles as $sVarName => $aUserFiles)
          {
              $aFiles[$sVarName] = [];
              foreach($aUserFiles as $aUserFile)
              {
                   $aFiles[$sVarName][] = $aUserFile->toTempData();
              }
          }
          // Save upload data in a temp file
          $sUploadDir = $this->getUploadTempDir();
          $this->sTempFile = uniqid();
          file_put_contents($sUploadDir . $this->sTempFile . '.json', json_encode($aFiles));
      }
code: protected function saveToTempFile()
      {
          // Convert uploaded file to an array
          $aFiles = [];
          foreach($this->aUserFiles as $sVarName => $aUserFiles)
          {
              $aFiles[$sVarName] = [];
              foreach($aUserFiles as $aUserFile)
              {
                   $aFiles[$sVarName][] = $aUserFile->toTempData();
              }
          }
          // Save upload data in a temp file
          $sUploadDir = $this->getUploadTempDir();
          $this->sTempFile = uniqid();
          file_put_contents($sUploadDir . $this->sTempFile . '.json', json_encode($aFiles));
      }
code_tokens: protected function saveToTempFile ( ) { // Convert uploaded file to an array $ aFiles = [ ] ; foreach ( $ this -> aUserFiles as $ sVarName => $ aUserFiles ) { $ aFiles [ $ sVarName ] = [ ] ; foreach ( $ aUserFiles as $ aUserFile ) { $ aFiles [ $ sVarName ] [ ] = $ aUserFile -> toTempData ( ) ; } } // Save upload data in a temp file $ sUploadDir = $ this -> getUploadTempDir ( ) ; $ this -> sTempFile = uniqid ( ) ; file_put_contents ( $ sUploadDir . $ this -> sTempFile . '.json' , json_encode ( $ aFiles ) ) ; }
docstring: Save uploaded files info to a temp file
  
  @return void
docstring_tokens: Save uploaded files info to a temp file