original_string: public static function reveal_identities($assignmentid) {
          global $CFG, $USER;
  
          $params = self::validate_parameters(self::reveal_identities_parameters(),
                                              array('assignmentid' => $assignmentid));
  
          list($assignment, $course, $cm, $context) = self::validate_assign($params['assignmentid']);
  
          $warnings = array();
          if (!$assignment->reveal_identities()) {
              $detail = 'User id: ' . $USER->id . ', Assignment id: ' . $params['assignmentid'];
              $warnings[] = self::generate_warning($params['assignmentid'],
                                                   'couldnotrevealidentities',
                                                   $detail);
          }
  
          return $warnings;
      }
code: public static function reveal_identities($assignmentid) {
          global $CFG, $USER;
  
          $params = self::validate_parameters(self::reveal_identities_parameters(),
                                              array('assignmentid' => $assignmentid));
  
          list($assignment, $course, $cm, $context) = self::validate_assign($params['assignmentid']);
  
          $warnings = array();
          if (!$assignment->reveal_identities()) {
              $detail = 'User id: ' . $USER->id . ', Assignment id: ' . $params['assignmentid'];
              $warnings[] = self::generate_warning($params['assignmentid'],
                                                   'couldnotrevealidentities',
                                                   $detail);
          }
  
          return $warnings;
      }
code_tokens: public static function reveal_identities ( $ assignmentid ) { global $ CFG , $ USER ; $ params = self :: validate_parameters ( self :: reveal_identities_parameters ( ) , array ( 'assignmentid' => $ assignmentid ) ) ; list ( $ assignment , $ course , $ cm , $ context ) = self :: validate_assign ( $ params [ 'assignmentid' ] ) ; $ warnings = array ( ) ; if ( ! $ assignment -> reveal_identities ( ) ) { $ detail = 'User id: ' . $ USER -> id . ', Assignment id: ' . $ params [ 'assignmentid' ] ; $ warnings [ ] = self :: generate_warning ( $ params [ 'assignmentid' ] , 'couldnotrevealidentities' , $ detail ) ; } return $ warnings ; }
docstring: Reveal the identities of anonymous students to markers for a single assignment.
  
  @param int $assignmentid The id of the assignment
  @return array of warnings to indicate any errors.
  @since Moodle 2.6
docstring_tokens: Reveal the identities of anonymous students to markers for a single assignment .