original_string: function executeUpdateUsergroup(Userinfo $userinfo, Userinfo &$existinguser)
      {
          $changed = false;
          $usergroups = $this->getCorrectUserGroups($userinfo);
  		if (!$this->compareUserGroups($existinguser, $usergroups)) {
  			$this->updateUsergroup($userinfo, $existinguser);
  			$changed = true;
          }
      	return $changed;
      }
code: function executeUpdateUsergroup(Userinfo $userinfo, Userinfo &$existinguser)
      {
          $changed = false;
          $usergroups = $this->getCorrectUserGroups($userinfo);
  		if (!$this->compareUserGroups($existinguser, $usergroups)) {
  			$this->updateUsergroup($userinfo, $existinguser);
  			$changed = true;
          }
      	return $changed;
      }
code_tokens: function executeUpdateUsergroup ( Userinfo $ userinfo , Userinfo & $ existinguser ) { $ changed = false ; $ usergroups = $ this -> getCorrectUserGroups ( $ userinfo ) ; if ( ! $ this -> compareUserGroups ( $ existinguser , $ usergroups ) ) { $ this -> updateUsergroup ( $ userinfo , $ existinguser ) ; $ changed = true ; } return $ changed ; }
docstring: Function that determines if the usergroup needs to be updated and executes updateUsergroup if it does
  
  @param Userinfo $userinfo      Object containing the new userinfo
  @param Userinfo &$existinguser Object containing the old userinfo
  
  @throws RuntimeException
  
  @return boolean Whether updateUsergroup was executed or not
docstring_tokens: Function that determines if the usergroup needs to be updated and executes updateUsergroup if it does