original_string: private function prepareData(&$data, $path, $propertyPath)
      {
          $file = new File($path);
          $data[FileType::FILENAME_FIELDNAME] = $file->getBasename();
          $data[FileType::HASH_FIELDNAME] = PurgatoryHelper::makeHash($propertyPath, $data[FileType::FILENAME_FIELDNAME]);
          $data[FileType::UPLOAD_FIELDNAME] = $file;
          $file->metaData = $data;
      }
code: private function prepareData(&$data, $path, $propertyPath)
      {
          $file = new File($path);
          $data[FileType::FILENAME_FIELDNAME] = $file->getBasename();
          $data[FileType::HASH_FIELDNAME] = PurgatoryHelper::makeHash($propertyPath, $data[FileType::FILENAME_FIELDNAME]);
          $data[FileType::UPLOAD_FIELDNAME] = $file;
          $file->metaData = $data;
      }
code_tokens: private function prepareData ( & $ data , $ path , $ propertyPath ) { $ file = new File ( $ path ) ; $ data [ FileType :: FILENAME_FIELDNAME ] = $ file -> getBasename ( ) ; $ data [ FileType :: HASH_FIELDNAME ] = PurgatoryHelper :: makeHash ( $ propertyPath , $ data [ FileType :: FILENAME_FIELDNAME ] ) ; $ data [ FileType :: UPLOAD_FIELDNAME ] = $ file ; $ file -> metaData = $ data ; }
docstring: Prepares the data before sending it to the form
  
  @param mixed &$data
  @param string $path
  @param string $propertyPath
docstring_tokens: Prepares the data before sending it to the form