original_string: public function current() {
          $user = \core_user::get_user($this->userids[$this->iteratorposition]);
  
          if (false === $user) {
              // This user was not found.
              unset($this->userids[$this->iteratorposition]);
  
              // Check to see if there are any more users left.
              if ($this->count()) {
                  // Move the pointer to the next record and try again.
                  $this->next();
                  $user = $this->current();
              } else {
                  // There are no more context ids left.
                  return;
              }
          }
  
          return $user;
      }
code: public function current() {
          $user = \core_user::get_user($this->userids[$this->iteratorposition]);
  
          if (false === $user) {
              // This user was not found.
              unset($this->userids[$this->iteratorposition]);
  
              // Check to see if there are any more users left.
              if ($this->count()) {
                  // Move the pointer to the next record and try again.
                  $this->next();
                  $user = $this->current();
              } else {
                  // There are no more context ids left.
                  return;
              }
          }
  
          return $user;
      }
code_tokens: public function current ( ) { $ user = \ core_user :: get_user ( $ this -> userids [ $ this -> iteratorposition ] ) ; if ( false === $ user ) { // This user was not found. unset ( $ this -> userids [ $ this -> iteratorposition ] ) ; // Check to see if there are any more users left. if ( $ this -> count ( ) ) { // Move the pointer to the next record and try again. $ this -> next ( ) ; $ user = $ this -> current ( ) ; } else { // There are no more context ids left. return ; } } return $ user ; }
docstring: Return the current user.
  
  @return  \user
docstring_tokens: Return the current user .