original_string: private function expected_alias_location($filerecord) {
  
          $filedesc = '/'.$filerecord->contextid.'/'.$filerecord->component.'/'.$filerecord->filearea;
          if (!is_null($filerecord->itemid)) {
              $filedesc .= '/'.$filerecord->itemid;
          }
          $filedesc .= $filerecord->filepath.$filerecord->filename;
  
          return $filedesc;
      }
code: private function expected_alias_location($filerecord) {
  
          $filedesc = '/'.$filerecord->contextid.'/'.$filerecord->component.'/'.$filerecord->filearea;
          if (!is_null($filerecord->itemid)) {
              $filedesc .= '/'.$filerecord->itemid;
          }
          $filedesc .= $filerecord->filepath.$filerecord->filename;
  
          return $filedesc;
      }
code_tokens: private function expected_alias_location ( $ filerecord ) { $ filedesc = '/' . $ filerecord -> contextid . '/' . $ filerecord -> component . '/' . $ filerecord -> filearea ; if ( ! is_null ( $ filerecord -> itemid ) ) { $ filedesc .= '/' . $ filerecord -> itemid ; } $ filedesc .= $ filerecord -> filepath . $ filerecord -> filename ; return $ filedesc ; }
docstring: Return the expected location of a file
  
  Please note this may and may not work as a part of URL to pluginfile.php
  (depends on how the given component/filearea deals with the itemid).
  
  @param stdClass $filerecord
  @return string
docstring_tokens: Return the expected location of a file