original_string: public static function list_user_evidence($userid) {
          static::require_enabled();
          if (!user_evidence::can_read_user($userid)) {
              $context = context_user::instance($userid);
              throw new required_capability_exception($context, 'moodle/competency:userevidenceview', 'nopermissions', '');
          }
  
          $evidence = user_evidence::get_records(array('userid' => $userid), 'name');
          return $evidence;
      }
code: public static function list_user_evidence($userid) {
          static::require_enabled();
          if (!user_evidence::can_read_user($userid)) {
              $context = context_user::instance($userid);
              throw new required_capability_exception($context, 'moodle/competency:userevidenceview', 'nopermissions', '');
          }
  
          $evidence = user_evidence::get_records(array('userid' => $userid), 'name');
          return $evidence;
      }
code_tokens: public static function list_user_evidence ( $ userid ) { static :: require_enabled ( ) ; if ( ! user_evidence :: can_read_user ( $ userid ) ) { $ context = context_user :: instance ( $ userid ) ; throw new required_capability_exception ( $ context , 'moodle/competency:userevidenceview' , 'nopermissions' , '' ) ; } $ evidence = user_evidence :: get_records ( array ( 'userid' => $ userid ) , 'name' ) ; return $ evidence ; }
docstring: List the user evidence of a user.
  
  @param  int $userid The user ID.
  @return user_evidence[]
docstring_tokens: List the user evidence of a user .