original_string: public function get_user_ids($roleids) {
  
          // We need to index by ra.id as a user may have more than 1 $roles role.
          $records = get_role_users($roleids, $this->get_context(), true, 'ra.id, u.id AS userid, r.id AS roleid', 'ra.id ASC');
  
          // If a user have more than 1 $roles role array_combine will discard the duplicate.
          $callable = array($this, 'filter_user_id');
          $userids = array_values(array_map($callable, $records));
          return array_combine($userids, $userids);
      }
code: public function get_user_ids($roleids) {
  
          // We need to index by ra.id as a user may have more than 1 $roles role.
          $records = get_role_users($roleids, $this->get_context(), true, 'ra.id, u.id AS userid, r.id AS roleid', 'ra.id ASC');
  
          // If a user have more than 1 $roles role array_combine will discard the duplicate.
          $callable = array($this, 'filter_user_id');
          $userids = array_values(array_map($callable, $records));
          return array_combine($userids, $userids);
      }
code_tokens: public function get_user_ids ( $ roleids ) { // We need to index by ra.id as a user may have more than 1 $roles role. $ records = get_role_users ( $ roleids , $ this -> get_context ( ) , true , 'ra.id, u.id AS userid, r.id AS roleid' , 'ra.id ASC' ) ; // If a user have more than 1 $roles role array_combine will discard the duplicate. $ callable = array ( $ this , 'filter_user_id' ) ; $ userids = array_values ( array_map ( $ callable , $ records ) ) ; return array_combine ( $ userids , $ userids ) ; }
docstring: Returns a list of user ids matching the specified roles in this course.
  
  @param array $roleids
  @return array
docstring_tokens: Returns a list of user ids matching the specified roles in this course .