original_string: public static function file_uploaded($draftitemid) {
          $draftareafiles = file_get_drafarea_files($draftitemid);
          do {
              $draftareafile = array_shift($draftareafiles->list);
          } while ($draftareafile !== null && $draftareafile->filename == '.');
          if ($draftareafile === null) {
              return false;
          }
          return true;
      }
code: public static function file_uploaded($draftitemid) {
          $draftareafiles = file_get_drafarea_files($draftitemid);
          do {
              $draftareafile = array_shift($draftareafiles->list);
          } while ($draftareafile !== null && $draftareafile->filename == '.');
          if ($draftareafile === null) {
              return false;
          }
          return true;
      }
code_tokens: public static function file_uploaded ( $ draftitemid ) { $ draftareafiles = file_get_drafarea_files ( $ draftitemid ) ; do { $ draftareafile = array_shift ( $ draftareafiles -> list ) ; } while ( $ draftareafile !== null && $ draftareafile -> filename == '.' ) ; if ( $ draftareafile === null ) { return false ; } return true ; }
docstring: Checks to see if a file has been uploaded.
  
  @param string $draftitemid The draft id
  @return bool True if files exist, false if not.
docstring_tokens: Checks to see if a file has been uploaded .